Skip to content

Commit 4ab14c9

Browse files
azclibotmsyyc
andauthored
[AutoRelease] t2-securityinsight-2022-03-15-70018(Do not merge) (Azure#23508)
* code and test * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Yuchao Yan <[email protected]>
1 parent fe66db1 commit 4ab14c9

File tree

84 files changed

+41441
-7139
lines changed

Some content is hidden

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

84 files changed

+41441
-7139
lines changed
Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,150 @@
11
# Release History
22

3+
## 1.0.0b2 (2022-03-30)
4+
5+
**Features**
6+
7+
- Added operation ActionsOperations.create_or_update
8+
- Added operation ActionsOperations.delete
9+
- Added operation ActionsOperations.get
10+
- Added operation DataConnectorsOperations.connect
11+
- Added operation DataConnectorsOperations.disconnect
12+
- Added operation IncidentCommentsOperations.create_or_update
13+
- Added operation IncidentCommentsOperations.delete
14+
- Added operation IncidentCommentsOperations.list
15+
- Added operation IncidentsOperations.create_team
16+
- Added operation IncidentsOperations.list_alerts
17+
- Added operation IncidentsOperations.list_bookmarks
18+
- Added operation IncidentsOperations.list_entities
19+
- Added operation IncidentsOperations.run_playbook
20+
- Added operation group AutomationRulesOperations
21+
- Added operation group BookmarkOperations
22+
- Added operation group BookmarkRelationsOperations
23+
- Added operation group DataConnectorsCheckRequirementsOperations
24+
- Added operation group DomainWhoisOperations
25+
- Added operation group EntitiesGetTimelineOperations
26+
- Added operation group EntitiesOperations
27+
- Added operation group EntitiesRelationsOperations
28+
- Added operation group EntityQueriesOperations
29+
- Added operation group EntityQueryTemplatesOperations
30+
- Added operation group EntityRelationsOperations
31+
- Added operation group IPGeodataOperations
32+
- Added operation group IncidentRelationsOperations
33+
- Added operation group MetadataOperations
34+
- Added operation group OfficeConsentsOperations
35+
- Added operation group ProductSettingsOperations
36+
- Added operation group SentinelOnboardingStatesOperations
37+
- Added operation group SourceControlOperations
38+
- Added operation group SourceControlsOperations
39+
- Added operation group ThreatIntelligenceIndicatorMetricsOperations
40+
- Added operation group ThreatIntelligenceIndicatorOperations
41+
- Added operation group ThreatIntelligenceIndicatorsOperations
42+
- Added operation group WatchlistItemsOperations
43+
- Added operation group WatchlistsOperations
44+
- Model AADDataConnector has a new parameter system_data
45+
- Model AATPDataConnector has a new parameter system_data
46+
- Model ASCDataConnector has a new parameter system_data
47+
- Model ActionRequest has a new parameter system_data
48+
- Model ActionResponse has a new parameter system_data
49+
- Model AlertRule has a new parameter system_data
50+
- Model AlertRuleTemplate has a new parameter system_data
51+
- Model AwsCloudTrailDataConnector has a new parameter system_data
52+
- Model Bookmark has a new parameter entity_mappings
53+
- Model Bookmark has a new parameter event_time
54+
- Model Bookmark has a new parameter query_end_time
55+
- Model Bookmark has a new parameter query_start_time
56+
- Model Bookmark has a new parameter system_data
57+
- Model Bookmark has a new parameter tactics
58+
- Model Bookmark has a new parameter techniques
59+
- Model DataConnector has a new parameter system_data
60+
- Model FusionAlertRule has a new parameter scenario_exclusion_patterns
61+
- Model FusionAlertRule has a new parameter source_settings
62+
- Model FusionAlertRule has a new parameter system_data
63+
- Model FusionAlertRule has a new parameter techniques
64+
- Model FusionAlertRuleTemplate has a new parameter last_updated_date_utc
65+
- Model FusionAlertRuleTemplate has a new parameter source_settings
66+
- Model FusionAlertRuleTemplate has a new parameter system_data
67+
- Model FusionAlertRuleTemplate has a new parameter techniques
68+
- Model Incident has a new parameter provider_incident_id
69+
- Model Incident has a new parameter provider_name
70+
- Model Incident has a new parameter system_data
71+
- Model Incident has a new parameter team_information
72+
- Model IncidentAdditionalData has a new parameter provider_incident_url
73+
- Model IncidentAdditionalData has a new parameter techniques
74+
- Model IncidentComment has a new parameter etag
75+
- Model IncidentComment has a new parameter last_modified_time_utc
76+
- Model IncidentComment has a new parameter system_data
77+
- Model IncidentOwnerInfo has a new parameter owner_type
78+
- Model MCASDataConnector has a new parameter system_data
79+
- Model MDATPDataConnector has a new parameter system_data
80+
- Model MicrosoftSecurityIncidentCreationAlertRule has a new parameter system_data
81+
- Model MicrosoftSecurityIncidentCreationAlertRuleTemplate has a new parameter last_updated_date_utc
82+
- Model MicrosoftSecurityIncidentCreationAlertRuleTemplate has a new parameter system_data
83+
- Model OfficeConsent has a new parameter consent_id
84+
- Model OfficeConsent has a new parameter system_data
85+
- Model OfficeDataConnector has a new parameter system_data
86+
- Model Operation has a new parameter is_data_action
87+
- Model Operation has a new parameter origin
88+
- Model Resource has a new parameter system_data
89+
- Model ResourceWithEtag has a new parameter system_data
90+
- Model ScheduledAlertRule has a new parameter alert_details_override
91+
- Model ScheduledAlertRule has a new parameter custom_details
92+
- Model ScheduledAlertRule has a new parameter entity_mappings
93+
- Model ScheduledAlertRule has a new parameter event_grouping_settings
94+
- Model ScheduledAlertRule has a new parameter incident_configuration
95+
- Model ScheduledAlertRule has a new parameter system_data
96+
- Model ScheduledAlertRule has a new parameter techniques
97+
- Model ScheduledAlertRule has a new parameter template_version
98+
- Model ScheduledAlertRuleCommonProperties has a new parameter alert_details_override
99+
- Model ScheduledAlertRuleCommonProperties has a new parameter custom_details
100+
- Model ScheduledAlertRuleCommonProperties has a new parameter entity_mappings
101+
- Model ScheduledAlertRuleCommonProperties has a new parameter event_grouping_settings
102+
- Model ScheduledAlertRuleProperties has a new parameter alert_details_override
103+
- Model ScheduledAlertRuleProperties has a new parameter custom_details
104+
- Model ScheduledAlertRuleProperties has a new parameter entity_mappings
105+
- Model ScheduledAlertRuleProperties has a new parameter event_grouping_settings
106+
- Model ScheduledAlertRuleProperties has a new parameter incident_configuration
107+
- Model ScheduledAlertRuleProperties has a new parameter techniques
108+
- Model ScheduledAlertRuleProperties has a new parameter template_version
109+
- Model ScheduledAlertRuleTemplate has a new parameter alert_details_override
110+
- Model ScheduledAlertRuleTemplate has a new parameter custom_details
111+
- Model ScheduledAlertRuleTemplate has a new parameter entity_mappings
112+
- Model ScheduledAlertRuleTemplate has a new parameter event_grouping_settings
113+
- Model ScheduledAlertRuleTemplate has a new parameter last_updated_date_utc
114+
- Model ScheduledAlertRuleTemplate has a new parameter system_data
115+
- Model ScheduledAlertRuleTemplate has a new parameter techniques
116+
- Model ScheduledAlertRuleTemplate has a new parameter version
117+
- Model Settings has a new parameter system_data
118+
- Model TIDataConnector has a new parameter system_data
119+
- Model TIDataConnector has a new parameter tip_lookback_period
120+
121+
**Breaking changes**
122+
123+
- Model OfficeConsent no longer has parameter tenant_name
124+
- Model OfficeDataConnectorDataTypes has a new required parameter teams
125+
- Parameter alerts of model AlertsDataTypeOfDataConnector is now required
126+
- Parameter alerts of model MCASDataConnectorDataTypes is now required
127+
- Parameter exchange of model OfficeDataConnectorDataTypes is now required
128+
- Parameter exchange of model OfficeDataConnectorDataTypes is now required
129+
- Parameter indicators of model TIDataConnectorDataTypes is now required
130+
- Parameter indicators of model TIDataConnectorDataTypes is now required
131+
- Parameter logs of model AwsCloudTrailDataConnectorDataTypes is now required
132+
- Parameter logs of model AwsCloudTrailDataConnectorDataTypes is now required
133+
- Parameter share_point of model OfficeDataConnectorDataTypes is now required
134+
- Parameter share_point of model OfficeDataConnectorDataTypes is now required
135+
- Parameter state of model AwsCloudTrailDataConnectorDataTypesLogs is now required
136+
- Parameter state of model DataConnectorDataTypeCommon is now required
137+
- Parameter state of model OfficeDataConnectorDataTypesExchange is now required
138+
- Parameter state of model OfficeDataConnectorDataTypesSharePoint is now required
139+
- Parameter state of model TIDataConnectorDataTypesIndicators is now required
140+
- Parameter tenant_id of model DataConnectorTenantId is now required
141+
- Parameter trigger_uri of model ActionRequestProperties is now required
142+
- Removed operation AlertRulesOperations.create_or_update_action
143+
- Removed operation AlertRulesOperations.delete_action
144+
- Removed operation AlertRulesOperations.get_action
145+
- Removed operation IncidentCommentsOperations.create_comment
146+
- Removed operation IncidentCommentsOperations.list_by_incident
147+
3148
## 1.0.0b1 (2020-11-10)
4149

5150
* Initial Release
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"autorest": "3.7.2",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "e432d9cc87bfed320d8feead4b448be9481c9181",
8+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9+
"autorest_command": "autorest specification/securityinsights/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
10+
"readme": "specification/securityinsights/resource-manager/readme.md"
11+
}

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
__version__ = VERSION
1313
__all__ = ['SecurityInsights']
1414

15-
try:
16-
from ._patch import patch_sdk # type: ignore
17-
patch_sdk()
18-
except ImportError:
19-
pass
15+
# `._patch.py` is used for handwritten extensions to the generated code
16+
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
17+
from ._patch import patch_sdk
18+
patch_sdk()

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

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

9-
from typing import TYPE_CHECKING
9+
from typing import Any, TYPE_CHECKING
1010

1111
from azure.core.configuration import Configuration
1212
from azure.core.pipeline import policies
13-
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
13+
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1414

1515
from ._version import VERSION
1616

1717
if TYPE_CHECKING:
1818
# pylint: disable=unused-import,ungrouped-imports
19-
from typing import Any
20-
2119
from azure.core.credentials import TokenCredential
2220

2321

@@ -29,26 +27,25 @@ class SecurityInsightsConfiguration(Configuration):
2927
3028
:param credential: Credential needed for the client to connect to Azure.
3129
:type credential: ~azure.core.credentials.TokenCredential
32-
:param subscription_id: Azure subscription ID.
30+
:param subscription_id: The ID of the target subscription.
3331
:type subscription_id: str
3432
"""
3533

3634
def __init__(
3735
self,
38-
credential, # type: "TokenCredential"
39-
subscription_id, # type: str
40-
**kwargs # type: Any
41-
):
42-
# type: (...) -> None
36+
credential: "TokenCredential",
37+
subscription_id: str,
38+
**kwargs: Any
39+
) -> None:
40+
super(SecurityInsightsConfiguration, self).__init__(**kwargs)
4341
if credential is None:
4442
raise ValueError("Parameter 'credential' must not be None.")
4543
if subscription_id is None:
4644
raise ValueError("Parameter 'subscription_id' must not be None.")
47-
super(SecurityInsightsConfiguration, self).__init__(**kwargs)
4845

4946
self.credential = credential
5047
self.subscription_id = subscription_id
51-
self.api_version = "2020-01-01"
48+
self.api_version = "2022-01-01-preview"
5249
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5350
kwargs.setdefault('sdk_moniker', 'mgmt-securityinsight/{}'.format(VERSION))
5451
self._configure(**kwargs)
@@ -68,4 +65,4 @@ def _configure(
6865
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
6966
self.authentication_policy = kwargs.get('authentication_policy')
7067
if self.credential and not self.authentication_policy:
71-
self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
68+
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)

0 commit comments

Comments
 (0)