Skip to content

Commit c0c52b3

Browse files
author
SDKAuto
committed
CodeGen from PR 27173 in Azure/azure-rest-api-specs
Merge 66e78084d3e783cec2d1f8010048469084ac3be3 into fa8683f6725e5447cc808420c4542ce8375f0325
1 parent 6aa171f commit c0c52b3

File tree

268 files changed

+14571
-37265
lines changed

Some content is hidden

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

268 files changed

+14571
-37265
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": "ad7be58ddf02606d3dbe38b66b54fca6f4555157",
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: 3 additions & 9 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
39-
this default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
33+
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-11-01")
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: 44 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,28 @@
2020
AlertRuleTemplatesOperations,
2121
AlertRulesOperations,
2222
AutomationRulesOperations,
23-
BookmarkOperations,
24-
BookmarkRelationsOperations,
2523
BookmarksOperations,
26-
DataConnectorsCheckRequirementsOperations,
24+
ContentPackageOperations,
25+
ContentPackagesOperations,
26+
ContentTemplateOperations,
27+
ContentTemplatesOperations,
2728
DataConnectorsOperations,
28-
DomainWhoisOperations,
29-
EntitiesGetTimelineOperations,
30-
EntitiesOperations,
31-
EntitiesRelationsOperations,
32-
EntityQueriesOperations,
33-
EntityQueryTemplatesOperations,
34-
EntityRelationsOperations,
35-
FileImportsOperations,
36-
GetOperations,
37-
GetRecommendationsOperations,
38-
IPGeodataOperations,
3929
IncidentCommentsOperations,
4030
IncidentRelationsOperations,
41-
IncidentTasksOperations,
4231
IncidentsOperations,
4332
MetadataOperations,
44-
OfficeConsentsOperations,
4533
Operations,
46-
ProductSettingsOperations,
34+
ProductPackageOperations,
35+
ProductPackagesOperations,
36+
ProductTemplateOperations,
37+
ProductTemplatesOperations,
4738
SecurityMLAnalyticsSettingsOperations,
4839
SentinelOnboardingStatesOperations,
4940
SourceControlOperations,
5041
SourceControlsOperations,
5142
ThreatIntelligenceIndicatorMetricsOperations,
5243
ThreatIntelligenceIndicatorOperations,
5344
ThreatIntelligenceIndicatorsOperations,
54-
UpdateOperations,
5545
WatchlistItemsOperations,
5646
WatchlistsOperations,
5747
)
@@ -73,59 +63,40 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
7363
azure.mgmt.securityinsight.operations.AlertRuleTemplatesOperations
7464
:ivar automation_rules: AutomationRulesOperations operations
7565
:vartype automation_rules: azure.mgmt.securityinsight.operations.AutomationRulesOperations
76-
:ivar incidents: IncidentsOperations operations
77-
:vartype incidents: azure.mgmt.securityinsight.operations.IncidentsOperations
7866
:ivar bookmarks: BookmarksOperations operations
7967
:vartype bookmarks: azure.mgmt.securityinsight.operations.BookmarksOperations
80-
:ivar bookmark_relations: BookmarkRelationsOperations operations
81-
:vartype bookmark_relations: azure.mgmt.securityinsight.operations.BookmarkRelationsOperations
82-
:ivar bookmark: BookmarkOperations operations
83-
:vartype bookmark: azure.mgmt.securityinsight.operations.BookmarkOperations
84-
:ivar ip_geodata: IPGeodataOperations operations
85-
:vartype ip_geodata: azure.mgmt.securityinsight.operations.IPGeodataOperations
86-
:ivar domain_whois: DomainWhoisOperations operations
87-
:vartype domain_whois: azure.mgmt.securityinsight.operations.DomainWhoisOperations
88-
:ivar entities: EntitiesOperations operations
89-
:vartype entities: azure.mgmt.securityinsight.operations.EntitiesOperations
90-
:ivar entities_get_timeline: EntitiesGetTimelineOperations operations
91-
:vartype entities_get_timeline:
92-
azure.mgmt.securityinsight.operations.EntitiesGetTimelineOperations
93-
:ivar entities_relations: EntitiesRelationsOperations operations
94-
:vartype entities_relations: azure.mgmt.securityinsight.operations.EntitiesRelationsOperations
95-
:ivar entity_relations: EntityRelationsOperations operations
96-
:vartype entity_relations: azure.mgmt.securityinsight.operations.EntityRelationsOperations
97-
:ivar entity_queries: EntityQueriesOperations operations
98-
:vartype entity_queries: azure.mgmt.securityinsight.operations.EntityQueriesOperations
99-
:ivar entity_query_templates: EntityQueryTemplatesOperations operations
100-
:vartype entity_query_templates:
101-
azure.mgmt.securityinsight.operations.EntityQueryTemplatesOperations
102-
:ivar file_imports: FileImportsOperations operations
103-
:vartype file_imports: azure.mgmt.securityinsight.operations.FileImportsOperations
68+
:ivar content_packages: ContentPackagesOperations operations
69+
:vartype content_packages: azure.mgmt.securityinsight.operations.ContentPackagesOperations
70+
:ivar content_package: ContentPackageOperations operations
71+
:vartype content_package: azure.mgmt.securityinsight.operations.ContentPackageOperations
72+
:ivar product_packages: ProductPackagesOperations operations
73+
:vartype product_packages: azure.mgmt.securityinsight.operations.ProductPackagesOperations
74+
:ivar product_package: ProductPackageOperations operations
75+
:vartype product_package: azure.mgmt.securityinsight.operations.ProductPackageOperations
76+
:ivar product_templates: ProductTemplatesOperations operations
77+
:vartype product_templates: azure.mgmt.securityinsight.operations.ProductTemplatesOperations
78+
:ivar product_template: ProductTemplateOperations operations
79+
:vartype product_template: azure.mgmt.securityinsight.operations.ProductTemplateOperations
80+
:ivar content_templates: ContentTemplatesOperations operations
81+
:vartype content_templates: azure.mgmt.securityinsight.operations.ContentTemplatesOperations
82+
:ivar content_template: ContentTemplateOperations operations
83+
:vartype content_template: azure.mgmt.securityinsight.operations.ContentTemplateOperations
84+
:ivar data_connectors: DataConnectorsOperations operations
85+
:vartype data_connectors: azure.mgmt.securityinsight.operations.DataConnectorsOperations
86+
:ivar incidents: IncidentsOperations operations
87+
:vartype incidents: azure.mgmt.securityinsight.operations.IncidentsOperations
10488
:ivar incident_comments: IncidentCommentsOperations operations
10589
:vartype incident_comments: azure.mgmt.securityinsight.operations.IncidentCommentsOperations
10690
:ivar incident_relations: IncidentRelationsOperations operations
10791
:vartype incident_relations: azure.mgmt.securityinsight.operations.IncidentRelationsOperations
108-
:ivar incident_tasks: IncidentTasksOperations operations
109-
:vartype incident_tasks: azure.mgmt.securityinsight.operations.IncidentTasksOperations
11092
:ivar metadata: MetadataOperations operations
11193
:vartype metadata: azure.mgmt.securityinsight.operations.MetadataOperations
112-
:ivar office_consents: OfficeConsentsOperations operations
113-
:vartype office_consents: azure.mgmt.securityinsight.operations.OfficeConsentsOperations
11494
:ivar sentinel_onboarding_states: SentinelOnboardingStatesOperations operations
11595
:vartype sentinel_onboarding_states:
11696
azure.mgmt.securityinsight.operations.SentinelOnboardingStatesOperations
117-
:ivar get_recommendations: GetRecommendationsOperations operations
118-
:vartype get_recommendations:
119-
azure.mgmt.securityinsight.operations.GetRecommendationsOperations
120-
:ivar get: GetOperations operations
121-
:vartype get: azure.mgmt.securityinsight.operations.GetOperations
122-
:ivar update: UpdateOperations operations
123-
:vartype update: azure.mgmt.securityinsight.operations.UpdateOperations
12497
:ivar security_ml_analytics_settings: SecurityMLAnalyticsSettingsOperations operations
12598
:vartype security_ml_analytics_settings:
12699
azure.mgmt.securityinsight.operations.SecurityMLAnalyticsSettingsOperations
127-
:ivar product_settings: ProductSettingsOperations operations
128-
:vartype product_settings: azure.mgmt.securityinsight.operations.ProductSettingsOperations
129100
:ivar source_control: SourceControlOperations operations
130101
:vartype source_control: azure.mgmt.securityinsight.operations.SourceControlOperations
131102
:ivar source_controls: SourceControlsOperations operations
@@ -144,11 +115,6 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
144115
:vartype watchlists: azure.mgmt.securityinsight.operations.WatchlistsOperations
145116
:ivar watchlist_items: WatchlistItemsOperations operations
146117
:vartype watchlist_items: azure.mgmt.securityinsight.operations.WatchlistItemsOperations
147-
:ivar data_connectors: DataConnectorsOperations operations
148-
:vartype data_connectors: azure.mgmt.securityinsight.operations.DataConnectorsOperations
149-
:ivar data_connectors_check_requirements: DataConnectorsCheckRequirementsOperations operations
150-
:vartype data_connectors_check_requirements:
151-
azure.mgmt.securityinsight.operations.DataConnectorsCheckRequirementsOperations
152118
:ivar operations: Operations operations
153119
:vartype operations: azure.mgmt.securityinsight.operations.Operations
154120
:param credential: Credential needed for the client to connect to Azure. Required.
@@ -157,11 +123,9 @@ class SecurityInsights: # pylint: disable=client-accepts-api-version-keyword,to
157123
:type subscription_id: str
158124
:param base_url: Service URL. Default value is "https://management.azure.com".
159125
:type base_url: str
160-
:keyword api_version: Api Version. Default value is "2022-12-01-preview". Note that overriding
161-
this default value may result in unsupported behavior.
126+
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
127+
default value may result in unsupported behavior.
162128
:paramtype api_version: str
163-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
164-
Retry-After header is present.
165129
"""
166130

167131
def __init__(
@@ -172,7 +136,7 @@ def __init__(
172136
**kwargs: Any
173137
) -> None:
174138
self._config = SecurityInsightsConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
175-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
139+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
176140

177141
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
178142
self._serialize = Serializer(client_models)
@@ -186,52 +150,42 @@ def __init__(
186150
self.automation_rules = AutomationRulesOperations(
187151
self._client, self._config, self._serialize, self._deserialize
188152
)
189-
self.incidents = IncidentsOperations(self._client, self._config, self._serialize, self._deserialize)
190153
self.bookmarks = BookmarksOperations(self._client, self._config, self._serialize, self._deserialize)
191-
self.bookmark_relations = BookmarkRelationsOperations(
154+
self.content_packages = ContentPackagesOperations(
155+
self._client, self._config, self._serialize, self._deserialize
156+
)
157+
self.content_package = ContentPackageOperations(self._client, self._config, self._serialize, self._deserialize)
158+
self.product_packages = ProductPackagesOperations(
192159
self._client, self._config, self._serialize, self._deserialize
193160
)
194-
self.bookmark = BookmarkOperations(self._client, self._config, self._serialize, self._deserialize)
195-
self.ip_geodata = IPGeodataOperations(self._client, self._config, self._serialize, self._deserialize)
196-
self.domain_whois = DomainWhoisOperations(self._client, self._config, self._serialize, self._deserialize)
197-
self.entities = EntitiesOperations(self._client, self._config, self._serialize, self._deserialize)
198-
self.entities_get_timeline = EntitiesGetTimelineOperations(
161+
self.product_package = ProductPackageOperations(self._client, self._config, self._serialize, self._deserialize)
162+
self.product_templates = ProductTemplatesOperations(
199163
self._client, self._config, self._serialize, self._deserialize
200164
)
201-
self.entities_relations = EntitiesRelationsOperations(
165+
self.product_template = ProductTemplateOperations(
202166
self._client, self._config, self._serialize, self._deserialize
203167
)
204-
self.entity_relations = EntityRelationsOperations(
168+
self.content_templates = ContentTemplatesOperations(
205169
self._client, self._config, self._serialize, self._deserialize
206170
)
207-
self.entity_queries = EntityQueriesOperations(self._client, self._config, self._serialize, self._deserialize)
208-
self.entity_query_templates = EntityQueryTemplatesOperations(
171+
self.content_template = ContentTemplateOperations(
209172
self._client, self._config, self._serialize, self._deserialize
210173
)
211-
self.file_imports = FileImportsOperations(self._client, self._config, self._serialize, self._deserialize)
174+
self.data_connectors = DataConnectorsOperations(self._client, self._config, self._serialize, self._deserialize)
175+
self.incidents = IncidentsOperations(self._client, self._config, self._serialize, self._deserialize)
212176
self.incident_comments = IncidentCommentsOperations(
213177
self._client, self._config, self._serialize, self._deserialize
214178
)
215179
self.incident_relations = IncidentRelationsOperations(
216180
self._client, self._config, self._serialize, self._deserialize
217181
)
218-
self.incident_tasks = IncidentTasksOperations(self._client, self._config, self._serialize, self._deserialize)
219182
self.metadata = MetadataOperations(self._client, self._config, self._serialize, self._deserialize)
220-
self.office_consents = OfficeConsentsOperations(self._client, self._config, self._serialize, self._deserialize)
221183
self.sentinel_onboarding_states = SentinelOnboardingStatesOperations(
222184
self._client, self._config, self._serialize, self._deserialize
223185
)
224-
self.get_recommendations = GetRecommendationsOperations(
225-
self._client, self._config, self._serialize, self._deserialize
226-
)
227-
self.get = GetOperations(self._client, self._config, self._serialize, self._deserialize)
228-
self.update = UpdateOperations(self._client, self._config, self._serialize, self._deserialize)
229186
self.security_ml_analytics_settings = SecurityMLAnalyticsSettingsOperations(
230187
self._client, self._config, self._serialize, self._deserialize
231188
)
232-
self.product_settings = ProductSettingsOperations(
233-
self._client, self._config, self._serialize, self._deserialize
234-
)
235189
self.source_control = SourceControlOperations(self._client, self._config, self._serialize, self._deserialize)
236190
self.source_controls = SourceControlsOperations(self._client, self._config, self._serialize, self._deserialize)
237191
self.threat_intelligence_indicator = ThreatIntelligenceIndicatorOperations(
@@ -245,10 +199,6 @@ def __init__(
245199
)
246200
self.watchlists = WatchlistsOperations(self._client, self._config, self._serialize, self._deserialize)
247201
self.watchlist_items = WatchlistItemsOperations(self._client, self._config, self._serialize, self._deserialize)
248-
self.data_connectors = DataConnectorsOperations(self._client, self._config, self._serialize, self._deserialize)
249-
self.data_connectors_check_requirements = DataConnectorsCheckRequirementsOperations(
250-
self._client, self._config, self._serialize, self._deserialize
251-
)
252202
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
253203

254204
def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
@@ -280,5 +230,5 @@ def __enter__(self) -> "SecurityInsights":
280230
self._client.__enter__()
281231
return self
282232

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

0 commit comments

Comments
 (0)