Skip to content

Commit 2fc6ffd

Browse files
author
SDKAuto
committed
CodeGen from PR 24362 in Azure/azure-rest-api-specs
Merge ecb6eb0883b949f7151d388b6b0c7cd49ff4db89 into ced38c4a96ec198d544b115f7d3627b4c63e0883
1 parent 8ba11a5 commit 2fc6ffd

File tree

382 files changed

+29518
-7581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

382 files changed

+29518
-7581
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "89a9bf17524904e7670f0fd2d62ac882ca00d85c",
2+
"commit": "7791efd6d0a7d6e0f6fbaefa82079b711625cbc6",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.2.7",
6+
"@autorest/python@6.6.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/securityinsights/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/securityinsights/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.6.0 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/securityinsights/resource-manager/readme.md"
1111
}

sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/_configuration.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
import sys
109
from typing import Any, TYPE_CHECKING
1110

1211
from azure.core.configuration import Configuration
@@ -15,11 +14,6 @@
1514

1615
from ._version import VERSION
1716

18-
if sys.version_info >= (3, 8):
19-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20-
else:
21-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22-
2317
if TYPE_CHECKING:
2418
# pylint: disable=unused-import,ungrouped-imports
2519
from azure.core.credentials import TokenCredential
@@ -35,14 +29,14 @@ class SecurityInsightsConfiguration(Configuration): # pylint: disable=too-many-
3529
:type credential: ~azure.core.credentials.TokenCredential
3630
:param subscription_id: The ID of the target subscription. Required.
3731
:type subscription_id: str
38-
:keyword api_version: Api Version. Default value is "2022-12-01-preview". Note that overriding
32+
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
3933
this default value may result in unsupported behavior.
4034
:paramtype api_version: str
4135
"""
4236

4337
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4438
super(SecurityInsightsConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2022-12-01-preview"] = kwargs.pop("api_version", "2022-12-01-preview")
39+
api_version: str = kwargs.pop("api_version", "2023-06-01-preview")
4640

4741
if credential is None:
4842
raise ValueError("Parameter 'credential' must not be None.")

sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/_security_insights.py

Lines changed: 121 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@
1717
from ._serialization import Deserializer, Serializer
1818
from .operations import (
1919
ActionsOperations,
20+
AlertRuleOperations,
2021
AlertRuleTemplatesOperations,
2122
AlertRulesOperations,
2223
AutomationRulesOperations,
24+
BillingStatisticsOperations,
2325
BookmarkOperations,
2426
BookmarkRelationsOperations,
2527
BookmarksOperations,
28+
ContentPackageOperations,
29+
ContentPackagesOperations,
30+
ContentTemplateOperations,
31+
ContentTemplatesOperations,
2632
DataConnectorsCheckRequirementsOperations,
2733
DataConnectorsOperations,
2834
DomainWhoisOperations,
@@ -35,6 +41,10 @@
3541
FileImportsOperations,
3642
GetOperations,
3743
GetRecommendationsOperations,
44+
GetTriggeredAnalyticsRuleRunsOperations,
45+
HuntCommentsOperations,
46+
HuntRelationsOperations,
47+
HuntsOperations,
3848
IPGeodataOperations,
3949
IncidentCommentsOperations,
4050
IncidentRelationsOperations,
@@ -43,17 +53,27 @@
4353
MetadataOperations,
4454
OfficeConsentsOperations,
4555
Operations,
56+
ProductPackageOperations,
57+
ProductPackagesOperations,
4658
ProductSettingsOperations,
59+
ProductTemplateOperations,
60+
ProductTemplatesOperations,
4761
SecurityMLAnalyticsSettingsOperations,
4862
SentinelOnboardingStatesOperations,
4963
SourceControlOperations,
5064
SourceControlsOperations,
5165
ThreatIntelligenceIndicatorMetricsOperations,
5266
ThreatIntelligenceIndicatorOperations,
5367
ThreatIntelligenceIndicatorsOperations,
68+
TriggeredAnalyticsRuleRunOperations,
5469
UpdateOperations,
5570
WatchlistItemsOperations,
5671
WatchlistsOperations,
72+
WorkspaceManagerAssignmentJobsOperations,
73+
WorkspaceManagerAssignmentsOperations,
74+
WorkspaceManagerConfigurationsOperations,
75+
WorkspaceManagerGroupsOperations,
76+
WorkspaceManagerMembersOperations,
5777
)
5878

5979
if TYPE_CHECKING:
@@ -73,20 +93,38 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
7393
azure.mgmt.securityinsight.operations.AlertRuleTemplatesOperations
7494
:ivar automation_rules: AutomationRulesOperations operations
7595
:vartype automation_rules: azure.mgmt.securityinsight.operations.AutomationRulesOperations
96+
:ivar entities: EntitiesOperations operations
97+
:vartype entities: azure.mgmt.securityinsight.operations.EntitiesOperations
7698
:ivar incidents: IncidentsOperations operations
7799
:vartype incidents: azure.mgmt.securityinsight.operations.IncidentsOperations
100+
:ivar billing_statistics: BillingStatisticsOperations operations
101+
:vartype billing_statistics: azure.mgmt.securityinsight.operations.BillingStatisticsOperations
78102
:ivar bookmarks: BookmarksOperations operations
79103
:vartype bookmarks: azure.mgmt.securityinsight.operations.BookmarksOperations
80104
:ivar bookmark_relations: BookmarkRelationsOperations operations
81105
:vartype bookmark_relations: azure.mgmt.securityinsight.operations.BookmarkRelationsOperations
82106
:ivar bookmark: BookmarkOperations operations
83107
:vartype bookmark: azure.mgmt.securityinsight.operations.BookmarkOperations
108+
:ivar content_packages: ContentPackagesOperations operations
109+
:vartype content_packages: azure.mgmt.securityinsight.operations.ContentPackagesOperations
110+
:ivar content_package: ContentPackageOperations operations
111+
:vartype content_package: azure.mgmt.securityinsight.operations.ContentPackageOperations
112+
:ivar product_packages: ProductPackagesOperations operations
113+
:vartype product_packages: azure.mgmt.securityinsight.operations.ProductPackagesOperations
114+
:ivar product_package: ProductPackageOperations operations
115+
:vartype product_package: azure.mgmt.securityinsight.operations.ProductPackageOperations
116+
:ivar product_templates: ProductTemplatesOperations operations
117+
:vartype product_templates: azure.mgmt.securityinsight.operations.ProductTemplatesOperations
118+
:ivar product_template: ProductTemplateOperations operations
119+
:vartype product_template: azure.mgmt.securityinsight.operations.ProductTemplateOperations
120+
:ivar content_templates: ContentTemplatesOperations operations
121+
:vartype content_templates: azure.mgmt.securityinsight.operations.ContentTemplatesOperations
122+
:ivar content_template: ContentTemplateOperations operations
123+
:vartype content_template: azure.mgmt.securityinsight.operations.ContentTemplateOperations
84124
:ivar ip_geodata: IPGeodataOperations operations
85125
:vartype ip_geodata: azure.mgmt.securityinsight.operations.IPGeodataOperations
86126
:ivar domain_whois: DomainWhoisOperations operations
87127
:vartype domain_whois: azure.mgmt.securityinsight.operations.DomainWhoisOperations
88-
:ivar entities: EntitiesOperations operations
89-
:vartype entities: azure.mgmt.securityinsight.operations.EntitiesOperations
90128
:ivar entities_get_timeline: EntitiesGetTimelineOperations operations
91129
:vartype entities_get_timeline:
92130
azure.mgmt.securityinsight.operations.EntitiesGetTimelineOperations
@@ -101,6 +139,12 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
101139
azure.mgmt.securityinsight.operations.EntityQueryTemplatesOperations
102140
:ivar file_imports: FileImportsOperations operations
103141
:vartype file_imports: azure.mgmt.securityinsight.operations.FileImportsOperations
142+
:ivar hunts: HuntsOperations operations
143+
:vartype hunts: azure.mgmt.securityinsight.operations.HuntsOperations
144+
:ivar hunt_relations: HuntRelationsOperations operations
145+
:vartype hunt_relations: azure.mgmt.securityinsight.operations.HuntRelationsOperations
146+
:ivar hunt_comments: HuntCommentsOperations operations
147+
:vartype hunt_comments: azure.mgmt.securityinsight.operations.HuntCommentsOperations
104148
:ivar incident_comments: IncidentCommentsOperations operations
105149
:vartype incident_comments: azure.mgmt.securityinsight.operations.IncidentCommentsOperations
106150
:ivar incident_relations: IncidentRelationsOperations operations
@@ -140,10 +184,33 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
140184
operations
141185
:vartype threat_intelligence_indicator_metrics:
142186
azure.mgmt.securityinsight.operations.ThreatIntelligenceIndicatorMetricsOperations
187+
:ivar triggered_analytics_rule_run: TriggeredAnalyticsRuleRunOperations operations
188+
:vartype triggered_analytics_rule_run:
189+
azure.mgmt.securityinsight.operations.TriggeredAnalyticsRuleRunOperations
190+
:ivar get_triggered_analytics_rule_runs: GetTriggeredAnalyticsRuleRunsOperations operations
191+
:vartype get_triggered_analytics_rule_runs:
192+
azure.mgmt.securityinsight.operations.GetTriggeredAnalyticsRuleRunsOperations
193+
:ivar alert_rule: AlertRuleOperations operations
194+
:vartype alert_rule: azure.mgmt.securityinsight.operations.AlertRuleOperations
143195
:ivar watchlists: WatchlistsOperations operations
144196
:vartype watchlists: azure.mgmt.securityinsight.operations.WatchlistsOperations
145197
:ivar watchlist_items: WatchlistItemsOperations operations
146198
:vartype watchlist_items: azure.mgmt.securityinsight.operations.WatchlistItemsOperations
199+
:ivar workspace_manager_assignments: WorkspaceManagerAssignmentsOperations operations
200+
:vartype workspace_manager_assignments:
201+
azure.mgmt.securityinsight.operations.WorkspaceManagerAssignmentsOperations
202+
:ivar workspace_manager_assignment_jobs: WorkspaceManagerAssignmentJobsOperations operations
203+
:vartype workspace_manager_assignment_jobs:
204+
azure.mgmt.securityinsight.operations.WorkspaceManagerAssignmentJobsOperations
205+
:ivar workspace_manager_configurations: WorkspaceManagerConfigurationsOperations operations
206+
:vartype workspace_manager_configurations:
207+
azure.mgmt.securityinsight.operations.WorkspaceManagerConfigurationsOperations
208+
:ivar workspace_manager_groups: WorkspaceManagerGroupsOperations operations
209+
:vartype workspace_manager_groups:
210+
azure.mgmt.securityinsight.operations.WorkspaceManagerGroupsOperations
211+
:ivar workspace_manager_members: WorkspaceManagerMembersOperations operations
212+
:vartype workspace_manager_members:
213+
azure.mgmt.securityinsight.operations.WorkspaceManagerMembersOperations
147214
:ivar data_connectors: DataConnectorsOperations operations
148215
:vartype data_connectors: azure.mgmt.securityinsight.operations.DataConnectorsOperations
149216
:ivar data_connectors_check_requirements: DataConnectorsCheckRequirementsOperations operations
@@ -157,7 +224,7 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
157224
:type subscription_id: str
158225
:param base_url: Service URL. Default value is "https://management.azure.com".
159226
:type base_url: str
160-
:keyword api_version: Api Version. Default value is "2022-12-01-preview". Note that overriding
227+
:keyword api_version: Api Version. Default value is "2023-06-01-preview". Note that overriding
161228
this default value may result in unsupported behavior.
162229
:paramtype api_version: str
163230
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -172,7 +239,7 @@ def __init__(
172239
**kwargs: Any
173240
) -> None:
174241
self._config = SecurityInsightsConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
175-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
242+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
176243

177244
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
178245
self._serialize = Serializer(client_models)
@@ -186,15 +253,38 @@ def __init__(
186253
self.automation_rules = AutomationRulesOperations(
187254
self._client, self._config, self._serialize, self._deserialize
188255
)
256+
self.entities = EntitiesOperations(self._client, self._config, self._serialize, self._deserialize)
189257
self.incidents = IncidentsOperations(self._client, self._config, self._serialize, self._deserialize)
258+
self.billing_statistics = BillingStatisticsOperations(
259+
self._client, self._config, self._serialize, self._deserialize
260+
)
190261
self.bookmarks = BookmarksOperations(self._client, self._config, self._serialize, self._deserialize)
191262
self.bookmark_relations = BookmarkRelationsOperations(
192263
self._client, self._config, self._serialize, self._deserialize
193264
)
194265
self.bookmark = BookmarkOperations(self._client, self._config, self._serialize, self._deserialize)
266+
self.content_packages = ContentPackagesOperations(
267+
self._client, self._config, self._serialize, self._deserialize
268+
)
269+
self.content_package = ContentPackageOperations(self._client, self._config, self._serialize, self._deserialize)
270+
self.product_packages = ProductPackagesOperations(
271+
self._client, self._config, self._serialize, self._deserialize
272+
)
273+
self.product_package = ProductPackageOperations(self._client, self._config, self._serialize, self._deserialize)
274+
self.product_templates = ProductTemplatesOperations(
275+
self._client, self._config, self._serialize, self._deserialize
276+
)
277+
self.product_template = ProductTemplateOperations(
278+
self._client, self._config, self._serialize, self._deserialize
279+
)
280+
self.content_templates = ContentTemplatesOperations(
281+
self._client, self._config, self._serialize, self._deserialize
282+
)
283+
self.content_template = ContentTemplateOperations(
284+
self._client, self._config, self._serialize, self._deserialize
285+
)
195286
self.ip_geodata = IPGeodataOperations(self._client, self._config, self._serialize, self._deserialize)
196287
self.domain_whois = DomainWhoisOperations(self._client, self._config, self._serialize, self._deserialize)
197-
self.entities = EntitiesOperations(self._client, self._config, self._serialize, self._deserialize)
198288
self.entities_get_timeline = EntitiesGetTimelineOperations(
199289
self._client, self._config, self._serialize, self._deserialize
200290
)
@@ -209,6 +299,9 @@ def __init__(
209299
self._client, self._config, self._serialize, self._deserialize
210300
)
211301
self.file_imports = FileImportsOperations(self._client, self._config, self._serialize, self._deserialize)
302+
self.hunts = HuntsOperations(self._client, self._config, self._serialize, self._deserialize)
303+
self.hunt_relations = HuntRelationsOperations(self._client, self._config, self._serialize, self._deserialize)
304+
self.hunt_comments = HuntCommentsOperations(self._client, self._config, self._serialize, self._deserialize)
212305
self.incident_comments = IncidentCommentsOperations(
213306
self._client, self._config, self._serialize, self._deserialize
214307
)
@@ -243,8 +336,30 @@ def __init__(
243336
self.threat_intelligence_indicator_metrics = ThreatIntelligenceIndicatorMetricsOperations(
244337
self._client, self._config, self._serialize, self._deserialize
245338
)
339+
self.triggered_analytics_rule_run = TriggeredAnalyticsRuleRunOperations(
340+
self._client, self._config, self._serialize, self._deserialize
341+
)
342+
self.get_triggered_analytics_rule_runs = GetTriggeredAnalyticsRuleRunsOperations(
343+
self._client, self._config, self._serialize, self._deserialize
344+
)
345+
self.alert_rule = AlertRuleOperations(self._client, self._config, self._serialize, self._deserialize)
246346
self.watchlists = WatchlistsOperations(self._client, self._config, self._serialize, self._deserialize)
247347
self.watchlist_items = WatchlistItemsOperations(self._client, self._config, self._serialize, self._deserialize)
348+
self.workspace_manager_assignments = WorkspaceManagerAssignmentsOperations(
349+
self._client, self._config, self._serialize, self._deserialize
350+
)
351+
self.workspace_manager_assignment_jobs = WorkspaceManagerAssignmentJobsOperations(
352+
self._client, self._config, self._serialize, self._deserialize
353+
)
354+
self.workspace_manager_configurations = WorkspaceManagerConfigurationsOperations(
355+
self._client, self._config, self._serialize, self._deserialize
356+
)
357+
self.workspace_manager_groups = WorkspaceManagerGroupsOperations(
358+
self._client, self._config, self._serialize, self._deserialize
359+
)
360+
self.workspace_manager_members = WorkspaceManagerMembersOperations(
361+
self._client, self._config, self._serialize, self._deserialize
362+
)
248363
self.data_connectors = DataConnectorsOperations(self._client, self._config, self._serialize, self._deserialize)
249364
self.data_connectors_check_requirements = DataConnectorsCheckRequirementsOperations(
250365
self._client, self._config, self._serialize, self._deserialize
@@ -280,5 +395,5 @@ def __enter__(self) -> "SecurityInsights":
280395
self._client.__enter__()
281396
return self
282397

283-
def __exit__(self, *exc_details) -> None:
398+
def __exit__(self, *exc_details: Any) -> None:
284399
self._client.__exit__(*exc_details)

0 commit comments

Comments
 (0)