Skip to content

Commit ed068e4

Browse files
authored
Operationalinsights mpg migration (#43584)
1 parent 5544b1a commit ed068e4

4 files changed

Lines changed: 592 additions & 22 deletions

File tree

specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/DataSource.tsp

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,24 @@ interface DataSources {
7575
*/
7676
listByWorkspace is ArmResourceListByParent<
7777
DataSource,
78-
Parameters = {
79-
/**
80-
* The filter to apply on the operation.
81-
*/
82-
@query("$filter")
83-
$filter: string;
84-
85-
/**
86-
* Starting point of the collection of data source instances.
87-
*/
88-
@query("$skiptoken")
89-
$skiptoken?: string;
90-
}
78+
Parameters = DataSourcesListByWorkspaceParameters
9179
>;
9280
}
9381

82+
alias DataSourcesListByWorkspaceParameters = {
83+
/**
84+
* The filter to apply on the operation.
85+
*/
86+
@query("$filter")
87+
$filter: string;
88+
89+
/**
90+
* Starting point of the collection of data source instances.
91+
*/
92+
@query("$skiptoken")
93+
$skiptoken?: string;
94+
};
95+
9496
@@doc(DataSource.name, "Name of the datasource");
9597
@@doc(
9698
DataSource.properties,

specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/Workspace.tsp

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,19 @@ alias GatewayOps = Azure.ResourceManager.Legacy.LegacyOperations<
8181
@pattern("^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$")
8282
workspaceName: string;
8383
},
84-
{
85-
/**
86-
* The Log Analytics gateway Id.
87-
*/
88-
@path
89-
@segment("gateways")
90-
@key("gatewayId")
91-
gatewayId: string;
92-
}
84+
GatewayNameParameter
9385
>;
9486

87+
alias GatewayNameParameter = {
88+
/**
89+
* The Log Analytics gateway Id.
90+
*/
91+
@path
92+
@segment("gateways")
93+
@key("gatewayId")
94+
gatewayId: string;
95+
};
96+
9597
alias PurgeOps = Azure.ResourceManager.Legacy.LegacyOperations<
9698
{
9799
...ApiVersionParameter;

0 commit comments

Comments
 (0)