Skip to content

Commit 42d9ead

Browse files
authored
Add csharp configurations to securityinsights (#44218)
1 parent d48174f commit 42d9ead

7 files changed

Lines changed: 1579 additions & 16 deletions

File tree

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/SecurityInsights/AlertRule.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ interface AlertRules {
8282
OperationalInsights,
8383
AlertRule,
8484
Request = AnalyticsRuleRunTrigger,
85-
Response = ArmAcceptedLroResponse<LroHeaders = ArmLroLocationHeader<FinalResult = AlertRule>>,
85+
Response = ArmAcceptedLroResponse<LroHeaders = ArmLroLocationHeader>,
8686
Error = ErrorResponse
8787
>;
8888
}

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/SecurityInsights/Relation.tsp

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ interface Relations {
3636
* Gets a relation for a given incident.
3737
*/
3838
@tag("IncidentRelations")
39-
get is Extension.Read<OperationalInsights, Relation, Error = CloudError>;
39+
get is Extension.Read<
40+
OperationalInsights,
41+
Relation,
42+
Error = CloudError,
43+
OverrideResourceName = "SecurityInsightsIncidentRelation"
44+
>;
4045

4146
/**
4247
* Creates or updates a relation for a given incident.
@@ -45,7 +50,8 @@ interface Relations {
4550
createOrUpdate is Extension.CreateOrReplaceSync<
4651
OperationalInsights,
4752
Relation,
48-
Error = CloudError
53+
Error = CloudError,
54+
OverrideResourceName = "SecurityInsightsIncidentRelation"
4955
>;
5056

5157
/**
@@ -55,7 +61,8 @@ interface Relations {
5561
delete is Extension.DeleteSync<
5662
OperationalInsights,
5763
Relation,
58-
Error = CloudError
64+
Error = CloudError,
65+
OverrideResourceName = "SecurityInsightsIncidentRelation"
5966
>;
6067

6168
/**
@@ -91,7 +98,8 @@ interface Relations {
9198
$skipToken?: string;
9299
},
93100
Response = ArmResponse<RelationList>,
94-
Error = CloudError
101+
Error = CloudError,
102+
OverrideResourceName = "SecurityInsightsIncidentRelation"
95103
>;
96104
}
97105

@@ -144,7 +152,8 @@ interface BookmarkRelationsOps
144152
@minLength(3)
145153
@maxLength(63)
146154
relationName: string,
147-
}
155+
},
156+
ResourceName = "SecurityInsightsBookmarkRelation"
148157
> {}
149158

150159
@armResourceOperations
@@ -250,7 +259,8 @@ interface EntityRelationOps
250259
@minLength(3)
251260
@maxLength(63)
252261
relationName: string,
253-
}
262+
},
263+
ResourceName = "SecurityInsightsEntityRelation"
254264
> {}
255265

256266
@armResourceOperations

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/SecurityInsights/ThreatIntelligenceInformation.tsp

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ interface ThreatIntelligenceInformationOperations {
4242
get is Extension.Read<
4343
OperationalInsights,
4444
ThreatIntelligenceInformation,
45-
Error = CloudError
45+
Error = CloudError,
46+
OverrideResourceName = "SecurityInsightsThreatIntelligenceIndicator"
4647
>;
4748

4849
/**
@@ -55,7 +56,8 @@ interface ThreatIntelligenceInformationOperations {
5556
Response =
5657
| ArmResourceUpdatedResponse<ThreatIntelligenceInformation>
5758
| ArmResourceCreatedSyncResponse<ThreatIntelligenceInformation>,
58-
Error = CloudError
59+
Error = CloudError,
60+
OverrideResourceName = "SecurityInsightsThreatIntelligenceIndicator"
5961
>;
6062

6163
/**
@@ -65,7 +67,8 @@ interface ThreatIntelligenceInformationOperations {
6567
delete is Extension.DeleteSync<
6668
OperationalInsights,
6769
ThreatIntelligenceInformation,
68-
Error = CloudError
70+
Error = CloudError,
71+
OverrideResourceName = "SecurityInsightsThreatIntelligenceIndicator"
6972
>;
7073

7174
/**
@@ -101,7 +104,8 @@ interface ThreatIntelligenceInformationOperations {
101104
$orderby?: string;
102105
},
103106
Response = ArmResponse<ThreatIntelligenceInformationList>,
104-
Error = CloudError
107+
Error = CloudError,
108+
OverrideResourceName = "SecurityInsightsThreatIntelligenceIndicator"
105109
>;
106110

107111
/**
@@ -113,7 +117,8 @@ interface ThreatIntelligenceInformationOperations {
113117
ThreatIntelligenceInformation,
114118
ThreatIntelligenceAppendTags,
115119
OkResponse,
116-
Error = CloudError
120+
Error = CloudError,
121+
OverrideResourceName = "SecurityInsightsThreatIntelligenceIndicator"
117122
>;
118123

119124
/**
@@ -125,7 +130,8 @@ interface ThreatIntelligenceInformationOperations {
125130
ThreatIntelligenceInformation,
126131
ThreatIntelligenceIndicatorModel,
127132
ArmResponse<ThreatIntelligenceInformation>,
128-
Error = CloudError
133+
Error = CloudError,
134+
OverrideResourceName = "SecurityInsightsThreatIntelligenceIndicator"
129135
>;
130136
}
131137

specification/securityinsights/resource-manager/Microsoft.SecurityInsights/SecurityInsights/back-compatible.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ using Microsoft.SecurityInsights;
738738
ThreatIntelligenceIndicatorOperationGroup.queryIndicators::parameters.body,
739739
"ThreatIntelligenceFilteringCriteria"
740740
);
741-
@@clientName(AatpCheckRequirements, "AATPCheckRequirements");
741+
@@clientName(AatpCheckRequirements, "AATPCheckRequirements", "!csharp");
742742
@@clientName(
743743
AatpCheckRequirementsProperties,
744744
"AATPCheckRequirementsProperties"

0 commit comments

Comments
 (0)