Skip to content

Commit 59894b6

Browse files
authored
Remove ExtensionOperations in Help (Azure#38224)
1 parent 1e76843 commit 59894b6

File tree

2 files changed

+4
-32
lines changed

2 files changed

+4
-32
lines changed

specification/help/resource-manager/Microsoft.Help/Help/DiagnosticResource.tsp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,9 @@ interface DiagnosticResources {
3434
/**
3535
* Creates a diagnostic for the specific resource using solutionId from discovery solutions. <br/>Diagnostics are powerful solutions that access product resources or other relevant data and provide the root cause of the issue and the steps to address the issue.<br/><br/>
3636
*/
37-
create is Legacy.ExtensionOperations.CreateOrUpdateAsync<
37+
create is Legacy.Extension.CreateOrUpdateAsync<
38+
Extension.ScopeParameter,
3839
DiagnosticResource,
39-
Parameters = {
40-
...ApiVersionParameter;
41-
...Extension.ScopeParameter;
42-
...Legacy.Provider;
43-
44-
/**
45-
* Unique resource name for insight resources
46-
*/
47-
@path
48-
@segment("diagnostics")
49-
@minLength(1)
50-
@maxLength(100)
51-
@pattern("^[A-Za-z0-9-+@()_]+$")
52-
diagnosticsResourceName: string;
53-
},
5440
OptionalRequestBody = true
5541
>;
5642
}

specification/help/resource-manager/Microsoft.Help/Help/SimplifiedSolutionsResource.tsp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,9 @@ interface SimplifiedSolutionsResources {
3434
/**
3535
* Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions as the input. <br/><br/> Simplified Solutions API makes the consumption of solutions APIs easier while still providing access to the same powerful solutions rendered in Solutions API. With Simplified Solutions, users don't have to worry about stitching together the article using replacement maps and can use the content in the API response to directly render as HTML content.<br/>
3636
*/
37-
create is Legacy.ExtensionOperations.CreateOrUpdateAsync<
37+
create is Legacy.Extension.CreateOrUpdateAsync<
38+
Extension.ScopeParameter,
3839
SimplifiedSolutionsResource,
39-
Parameters = {
40-
...ApiVersionParameter;
41-
...Extension.ScopeParameter;
42-
...Legacy.Provider;
43-
44-
/**
45-
* Simplified Solutions Resource Name.
46-
*/
47-
@path
48-
@segment("simplifiedSolutions")
49-
@minLength(1)
50-
@maxLength(100)
51-
@pattern("^[A-Za-z0-9-+@()_]+$")
52-
simplifiedSolutionsResourceName: string;
53-
},
5440
OptionalRequestBody = true
5541
>;
5642
}

0 commit comments

Comments
 (0)