Skip to content

Commit 13be52e

Browse files
author
SDKAuto
committed
CodeGen from PR 26493 in Azure/azure-rest-api-specs
Merge 731fecd09c6982dc24353dc4e2473fab17e761bd into d6d9527c628f09bc81fb1b01d938872e1a681a2d
1 parent 1d0a647 commit 13be52e

File tree

388 files changed

+38732
-12798
lines changed

Some content is hidden

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

388 files changed

+38732
-12798
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "89a9bf17524904e7670f0fd2d62ac882ca00d85c",
2+
"commit": "3647bfb536a23cb9eaef0dfaa943fe29a1f6c03e",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
4+
"autorest": "3.9.7",
55
"use": [
6-
"@autorest/python@6.2.7",
7-
"@autorest/modelerfour@4.24.3"
6+
"@autorest/python@6.7.1",
7+
"@autorest/modelerfour@4.26.2"
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/modelerfour@4.24.3 --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.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --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-10-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-10-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: 128 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,19 @@
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,
32+
DataConnectorDefinitionsOperations,
2633
DataConnectorsCheckRequirementsOperations,
2734
DataConnectorsOperations,
2835
DomainWhoisOperations,
@@ -35,6 +42,10 @@
3542
FileImportsOperations,
3643
GetOperations,
3744
GetRecommendationsOperations,
45+
GetTriggeredAnalyticsRuleRunsOperations,
46+
HuntCommentsOperations,
47+
HuntRelationsOperations,
48+
HuntsOperations,
3849
IPGeodataOperations,
3950
IncidentCommentsOperations,
4051
IncidentRelationsOperations,
@@ -43,17 +54,27 @@
4354
MetadataOperations,
4455
OfficeConsentsOperations,
4556
Operations,
57+
ProductPackageOperations,
58+
ProductPackagesOperations,
4659
ProductSettingsOperations,
60+
ProductTemplateOperations,
61+
ProductTemplatesOperations,
4762
SecurityMLAnalyticsSettingsOperations,
4863
SentinelOnboardingStatesOperations,
4964
SourceControlOperations,
5065
SourceControlsOperations,
5166
ThreatIntelligenceIndicatorMetricsOperations,
5267
ThreatIntelligenceIndicatorOperations,
5368
ThreatIntelligenceIndicatorsOperations,
69+
TriggeredAnalyticsRuleRunOperations,
5470
UpdateOperations,
5571
WatchlistItemsOperations,
5672
WatchlistsOperations,
73+
WorkspaceManagerAssignmentJobsOperations,
74+
WorkspaceManagerAssignmentsOperations,
75+
WorkspaceManagerConfigurationsOperations,
76+
WorkspaceManagerGroupsOperations,
77+
WorkspaceManagerMembersOperations,
5778
)
5879

5980
if TYPE_CHECKING:
@@ -73,20 +94,38 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
7394
azure.mgmt.securityinsight.operations.AlertRuleTemplatesOperations
7495
:ivar automation_rules: AutomationRulesOperations operations
7596
:vartype automation_rules: azure.mgmt.securityinsight.operations.AutomationRulesOperations
97+
:ivar entities: EntitiesOperations operations
98+
:vartype entities: azure.mgmt.securityinsight.operations.EntitiesOperations
7699
:ivar incidents: IncidentsOperations operations
77100
:vartype incidents: azure.mgmt.securityinsight.operations.IncidentsOperations
101+
:ivar billing_statistics: BillingStatisticsOperations operations
102+
:vartype billing_statistics: azure.mgmt.securityinsight.operations.BillingStatisticsOperations
78103
:ivar bookmarks: BookmarksOperations operations
79104
:vartype bookmarks: azure.mgmt.securityinsight.operations.BookmarksOperations
80105
:ivar bookmark_relations: BookmarkRelationsOperations operations
81106
:vartype bookmark_relations: azure.mgmt.securityinsight.operations.BookmarkRelationsOperations
82107
:ivar bookmark: BookmarkOperations operations
83108
:vartype bookmark: azure.mgmt.securityinsight.operations.BookmarkOperations
109+
:ivar content_packages: ContentPackagesOperations operations
110+
:vartype content_packages: azure.mgmt.securityinsight.operations.ContentPackagesOperations
111+
:ivar content_package: ContentPackageOperations operations
112+
:vartype content_package: azure.mgmt.securityinsight.operations.ContentPackageOperations
113+
:ivar product_packages: ProductPackagesOperations operations
114+
:vartype product_packages: azure.mgmt.securityinsight.operations.ProductPackagesOperations
115+
:ivar product_package: ProductPackageOperations operations
116+
:vartype product_package: azure.mgmt.securityinsight.operations.ProductPackageOperations
117+
:ivar product_templates: ProductTemplatesOperations operations
118+
:vartype product_templates: azure.mgmt.securityinsight.operations.ProductTemplatesOperations
119+
:ivar product_template: ProductTemplateOperations operations
120+
:vartype product_template: azure.mgmt.securityinsight.operations.ProductTemplateOperations
121+
:ivar content_templates: ContentTemplatesOperations operations
122+
:vartype content_templates: azure.mgmt.securityinsight.operations.ContentTemplatesOperations
123+
:ivar content_template: ContentTemplateOperations operations
124+
:vartype content_template: azure.mgmt.securityinsight.operations.ContentTemplateOperations
84125
:ivar ip_geodata: IPGeodataOperations operations
85126
:vartype ip_geodata: azure.mgmt.securityinsight.operations.IPGeodataOperations
86127
:ivar domain_whois: DomainWhoisOperations operations
87128
:vartype domain_whois: azure.mgmt.securityinsight.operations.DomainWhoisOperations
88-
:ivar entities: EntitiesOperations operations
89-
:vartype entities: azure.mgmt.securityinsight.operations.EntitiesOperations
90129
:ivar entities_get_timeline: EntitiesGetTimelineOperations operations
91130
:vartype entities_get_timeline:
92131
azure.mgmt.securityinsight.operations.EntitiesGetTimelineOperations
@@ -101,6 +140,12 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
101140
azure.mgmt.securityinsight.operations.EntityQueryTemplatesOperations
102141
:ivar file_imports: FileImportsOperations operations
103142
:vartype file_imports: azure.mgmt.securityinsight.operations.FileImportsOperations
143+
:ivar hunts: HuntsOperations operations
144+
:vartype hunts: azure.mgmt.securityinsight.operations.HuntsOperations
145+
:ivar hunt_relations: HuntRelationsOperations operations
146+
:vartype hunt_relations: azure.mgmt.securityinsight.operations.HuntRelationsOperations
147+
:ivar hunt_comments: HuntCommentsOperations operations
148+
:vartype hunt_comments: azure.mgmt.securityinsight.operations.HuntCommentsOperations
104149
:ivar incident_comments: IncidentCommentsOperations operations
105150
:vartype incident_comments: azure.mgmt.securityinsight.operations.IncidentCommentsOperations
106151
:ivar incident_relations: IncidentRelationsOperations operations
@@ -140,10 +185,36 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
140185
operations
141186
:vartype threat_intelligence_indicator_metrics:
142187
azure.mgmt.securityinsight.operations.ThreatIntelligenceIndicatorMetricsOperations
188+
:ivar triggered_analytics_rule_run: TriggeredAnalyticsRuleRunOperations operations
189+
:vartype triggered_analytics_rule_run:
190+
azure.mgmt.securityinsight.operations.TriggeredAnalyticsRuleRunOperations
191+
:ivar get_triggered_analytics_rule_runs: GetTriggeredAnalyticsRuleRunsOperations operations
192+
:vartype get_triggered_analytics_rule_runs:
193+
azure.mgmt.securityinsight.operations.GetTriggeredAnalyticsRuleRunsOperations
194+
:ivar alert_rule: AlertRuleOperations operations
195+
:vartype alert_rule: azure.mgmt.securityinsight.operations.AlertRuleOperations
143196
:ivar watchlists: WatchlistsOperations operations
144197
:vartype watchlists: azure.mgmt.securityinsight.operations.WatchlistsOperations
145198
:ivar watchlist_items: WatchlistItemsOperations operations
146199
:vartype watchlist_items: azure.mgmt.securityinsight.operations.WatchlistItemsOperations
200+
:ivar workspace_manager_assignments: WorkspaceManagerAssignmentsOperations operations
201+
:vartype workspace_manager_assignments:
202+
azure.mgmt.securityinsight.operations.WorkspaceManagerAssignmentsOperations
203+
:ivar workspace_manager_assignment_jobs: WorkspaceManagerAssignmentJobsOperations operations
204+
:vartype workspace_manager_assignment_jobs:
205+
azure.mgmt.securityinsight.operations.WorkspaceManagerAssignmentJobsOperations
206+
:ivar workspace_manager_configurations: WorkspaceManagerConfigurationsOperations operations
207+
:vartype workspace_manager_configurations:
208+
azure.mgmt.securityinsight.operations.WorkspaceManagerConfigurationsOperations
209+
:ivar workspace_manager_groups: WorkspaceManagerGroupsOperations operations
210+
:vartype workspace_manager_groups:
211+
azure.mgmt.securityinsight.operations.WorkspaceManagerGroupsOperations
212+
:ivar workspace_manager_members: WorkspaceManagerMembersOperations operations
213+
:vartype workspace_manager_members:
214+
azure.mgmt.securityinsight.operations.WorkspaceManagerMembersOperations
215+
:ivar data_connector_definitions: DataConnectorDefinitionsOperations operations
216+
:vartype data_connector_definitions:
217+
azure.mgmt.securityinsight.operations.DataConnectorDefinitionsOperations
147218
:ivar data_connectors: DataConnectorsOperations operations
148219
:vartype data_connectors: azure.mgmt.securityinsight.operations.DataConnectorsOperations
149220
:ivar data_connectors_check_requirements: DataConnectorsCheckRequirementsOperations operations
@@ -157,7 +228,7 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
157228
:type subscription_id: str
158229
:param base_url: Service URL. Default value is "https://management.azure.com".
159230
:type base_url: str
160-
:keyword api_version: Api Version. Default value is "2022-12-01-preview". Note that overriding
231+
:keyword api_version: Api Version. Default value is "2023-10-01-preview". Note that overriding
161232
this default value may result in unsupported behavior.
162233
:paramtype api_version: str
163234
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -172,7 +243,7 @@ def __init__(
172243
**kwargs: Any
173244
) -> None:
174245
self._config = SecurityInsightsConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
175-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
246+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
176247

177248
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
178249
self._serialize = Serializer(client_models)
@@ -186,15 +257,38 @@ def __init__(
186257
self.automation_rules = AutomationRulesOperations(
187258
self._client, self._config, self._serialize, self._deserialize
188259
)
260+
self.entities = EntitiesOperations(self._client, self._config, self._serialize, self._deserialize)
189261
self.incidents = IncidentsOperations(self._client, self._config, self._serialize, self._deserialize)
262+
self.billing_statistics = BillingStatisticsOperations(
263+
self._client, self._config, self._serialize, self._deserialize
264+
)
190265
self.bookmarks = BookmarksOperations(self._client, self._config, self._serialize, self._deserialize)
191266
self.bookmark_relations = BookmarkRelationsOperations(
192267
self._client, self._config, self._serialize, self._deserialize
193268
)
194269
self.bookmark = BookmarkOperations(self._client, self._config, self._serialize, self._deserialize)
270+
self.content_packages = ContentPackagesOperations(
271+
self._client, self._config, self._serialize, self._deserialize
272+
)
273+
self.content_package = ContentPackageOperations(self._client, self._config, self._serialize, self._deserialize)
274+
self.product_packages = ProductPackagesOperations(
275+
self._client, self._config, self._serialize, self._deserialize
276+
)
277+
self.product_package = ProductPackageOperations(self._client, self._config, self._serialize, self._deserialize)
278+
self.product_templates = ProductTemplatesOperations(
279+
self._client, self._config, self._serialize, self._deserialize
280+
)
281+
self.product_template = ProductTemplateOperations(
282+
self._client, self._config, self._serialize, self._deserialize
283+
)
284+
self.content_templates = ContentTemplatesOperations(
285+
self._client, self._config, self._serialize, self._deserialize
286+
)
287+
self.content_template = ContentTemplateOperations(
288+
self._client, self._config, self._serialize, self._deserialize
289+
)
195290
self.ip_geodata = IPGeodataOperations(self._client, self._config, self._serialize, self._deserialize)
196291
self.domain_whois = DomainWhoisOperations(self._client, self._config, self._serialize, self._deserialize)
197-
self.entities = EntitiesOperations(self._client, self._config, self._serialize, self._deserialize)
198292
self.entities_get_timeline = EntitiesGetTimelineOperations(
199293
self._client, self._config, self._serialize, self._deserialize
200294
)
@@ -209,6 +303,9 @@ def __init__(
209303
self._client, self._config, self._serialize, self._deserialize
210304
)
211305
self.file_imports = FileImportsOperations(self._client, self._config, self._serialize, self._deserialize)
306+
self.hunts = HuntsOperations(self._client, self._config, self._serialize, self._deserialize)
307+
self.hunt_relations = HuntRelationsOperations(self._client, self._config, self._serialize, self._deserialize)
308+
self.hunt_comments = HuntCommentsOperations(self._client, self._config, self._serialize, self._deserialize)
212309
self.incident_comments = IncidentCommentsOperations(
213310
self._client, self._config, self._serialize, self._deserialize
214311
)
@@ -243,8 +340,33 @@ def __init__(
243340
self.threat_intelligence_indicator_metrics = ThreatIntelligenceIndicatorMetricsOperations(
244341
self._client, self._config, self._serialize, self._deserialize
245342
)
343+
self.triggered_analytics_rule_run = TriggeredAnalyticsRuleRunOperations(
344+
self._client, self._config, self._serialize, self._deserialize
345+
)
346+
self.get_triggered_analytics_rule_runs = GetTriggeredAnalyticsRuleRunsOperations(
347+
self._client, self._config, self._serialize, self._deserialize
348+
)
349+
self.alert_rule = AlertRuleOperations(self._client, self._config, self._serialize, self._deserialize)
246350
self.watchlists = WatchlistsOperations(self._client, self._config, self._serialize, self._deserialize)
247351
self.watchlist_items = WatchlistItemsOperations(self._client, self._config, self._serialize, self._deserialize)
352+
self.workspace_manager_assignments = WorkspaceManagerAssignmentsOperations(
353+
self._client, self._config, self._serialize, self._deserialize
354+
)
355+
self.workspace_manager_assignment_jobs = WorkspaceManagerAssignmentJobsOperations(
356+
self._client, self._config, self._serialize, self._deserialize
357+
)
358+
self.workspace_manager_configurations = WorkspaceManagerConfigurationsOperations(
359+
self._client, self._config, self._serialize, self._deserialize
360+
)
361+
self.workspace_manager_groups = WorkspaceManagerGroupsOperations(
362+
self._client, self._config, self._serialize, self._deserialize
363+
)
364+
self.workspace_manager_members = WorkspaceManagerMembersOperations(
365+
self._client, self._config, self._serialize, self._deserialize
366+
)
367+
self.data_connector_definitions = DataConnectorDefinitionsOperations(
368+
self._client, self._config, self._serialize, self._deserialize
369+
)
248370
self.data_connectors = DataConnectorsOperations(self._client, self._config, self._serialize, self._deserialize)
249371
self.data_connectors_check_requirements = DataConnectorsCheckRequirementsOperations(
250372
self._client, self._config, self._serialize, self._deserialize
@@ -280,5 +402,5 @@ def __enter__(self) -> "SecurityInsights":
280402
self._client.__enter__()
281403
return self
282404

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

0 commit comments

Comments
 (0)