Skip to content

[AutoPR track2_azure-mgmt-securityinsight] Bug Fix: Correcting sourceType field for 2022-01-01-preview API version for Watchlist #943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/securityinsight/azure-mgmt-securityinsight/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "8c2258114e565bb041dcb25a761acb965a4870e7",
"commit": "8af2539e9b9cceb1f0e0831af63a365d5fcfe9ed",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/securityinsights/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --tag=package-2021-10 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/securityinsights/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/securityinsights/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class SecurityInsightsConfiguration(Configuration): # pylint: disable=too-many-
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand All @@ -41,7 +41,7 @@ def __init__(
**kwargs: Any
) -> None:
super(SecurityInsightsConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2021-10-01") # type: str
api_version = kwargs.pop('api_version', "2022-07-01-preview") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from . import models
from ._configuration import SecurityInsightsConfiguration
from .operations import ActionsOperations, AlertRuleTemplatesOperations, AlertRulesOperations, AutomationRulesOperations, BookmarksOperations, DataConnectorsOperations, IncidentCommentsOperations, IncidentRelationsOperations, IncidentsOperations, Operations, SentinelOnboardingStatesOperations, ThreatIntelligenceIndicatorMetricsOperations, ThreatIntelligenceIndicatorOperations, ThreatIntelligenceIndicatorsOperations, WatchlistItemsOperations, WatchlistsOperations
from .operations import ActionsOperations, AlertRuleTemplatesOperations, AlertRulesOperations, AutomationRulesOperations, BookmarkOperations, BookmarkRelationsOperations, BookmarksOperations, DataConnectorsCheckRequirementsOperations, DataConnectorsOperations, DomainWhoisOperations, EntitiesGetTimelineOperations, EntitiesOperations, EntitiesRelationsOperations, EntityQueriesOperations, EntityQueryTemplatesOperations, EntityRelationsOperations, IPGeodataOperations, IncidentCommentsOperations, IncidentRelationsOperations, IncidentsOperations, MetadataOperations, OfficeConsentsOperations, Operations, ProductSettingsOperations, SecurityMLAnalyticsSettingsOperations, SentinelOnboardingStatesOperations, SourceControlOperations, SourceControlsOperations, ThreatIntelligenceIndicatorMetricsOperations, ThreatIntelligenceIndicatorOperations, ThreatIntelligenceIndicatorsOperations, WatchlistItemsOperations, WatchlistsOperations

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
Expand All @@ -25,12 +25,61 @@
class SecurityInsights: # pylint: disable=too-many-instance-attributes
"""API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider.

:ivar alert_rules: AlertRulesOperations operations
:vartype alert_rules: azure.mgmt.securityinsight.operations.AlertRulesOperations
:ivar actions: ActionsOperations operations
:vartype actions: azure.mgmt.securityinsight.operations.ActionsOperations
:ivar alert_rule_templates: AlertRuleTemplatesOperations operations
:vartype alert_rule_templates:
azure.mgmt.securityinsight.operations.AlertRuleTemplatesOperations
:ivar automation_rules: AutomationRulesOperations operations
:vartype automation_rules: azure.mgmt.securityinsight.operations.AutomationRulesOperations
:ivar incidents: IncidentsOperations operations
:vartype incidents: azure.mgmt.securityinsight.operations.IncidentsOperations
:ivar bookmarks: BookmarksOperations operations
:vartype bookmarks: azure.mgmt.securityinsight.operations.BookmarksOperations
:ivar bookmark_relations: BookmarkRelationsOperations operations
:vartype bookmark_relations: azure.mgmt.securityinsight.operations.BookmarkRelationsOperations
:ivar bookmark: BookmarkOperations operations
:vartype bookmark: azure.mgmt.securityinsight.operations.BookmarkOperations
:ivar ip_geodata: IPGeodataOperations operations
:vartype ip_geodata: azure.mgmt.securityinsight.operations.IPGeodataOperations
:ivar domain_whois: DomainWhoisOperations operations
:vartype domain_whois: azure.mgmt.securityinsight.operations.DomainWhoisOperations
:ivar entities: EntitiesOperations operations
:vartype entities: azure.mgmt.securityinsight.operations.EntitiesOperations
:ivar entities_get_timeline: EntitiesGetTimelineOperations operations
:vartype entities_get_timeline:
azure.mgmt.securityinsight.operations.EntitiesGetTimelineOperations
:ivar entities_relations: EntitiesRelationsOperations operations
:vartype entities_relations: azure.mgmt.securityinsight.operations.EntitiesRelationsOperations
:ivar entity_relations: EntityRelationsOperations operations
:vartype entity_relations: azure.mgmt.securityinsight.operations.EntityRelationsOperations
:ivar entity_queries: EntityQueriesOperations operations
:vartype entity_queries: azure.mgmt.securityinsight.operations.EntityQueriesOperations
:ivar entity_query_templates: EntityQueryTemplatesOperations operations
:vartype entity_query_templates:
azure.mgmt.securityinsight.operations.EntityQueryTemplatesOperations
:ivar incident_comments: IncidentCommentsOperations operations
:vartype incident_comments: azure.mgmt.securityinsight.operations.IncidentCommentsOperations
:ivar incident_relations: IncidentRelationsOperations operations
:vartype incident_relations: azure.mgmt.securityinsight.operations.IncidentRelationsOperations
:ivar metadata: MetadataOperations operations
:vartype metadata: azure.mgmt.securityinsight.operations.MetadataOperations
:ivar office_consents: OfficeConsentsOperations operations
:vartype office_consents: azure.mgmt.securityinsight.operations.OfficeConsentsOperations
:ivar sentinel_onboarding_states: SentinelOnboardingStatesOperations operations
:vartype sentinel_onboarding_states:
azure.mgmt.securityinsight.operations.SentinelOnboardingStatesOperations
:ivar security_ml_analytics_settings: SecurityMLAnalyticsSettingsOperations operations
:vartype security_ml_analytics_settings:
azure.mgmt.securityinsight.operations.SecurityMLAnalyticsSettingsOperations
:ivar product_settings: ProductSettingsOperations operations
:vartype product_settings: azure.mgmt.securityinsight.operations.ProductSettingsOperations
:ivar source_control: SourceControlOperations operations
:vartype source_control: azure.mgmt.securityinsight.operations.SourceControlOperations
:ivar source_controls: SourceControlsOperations operations
:vartype source_controls: azure.mgmt.securityinsight.operations.SourceControlsOperations
:ivar threat_intelligence_indicator: ThreatIntelligenceIndicatorOperations operations
:vartype threat_intelligence_indicator:
azure.mgmt.securityinsight.operations.ThreatIntelligenceIndicatorOperations
Expand All @@ -45,32 +94,21 @@ class SecurityInsights: # pylint: disable=too-many-instance-attributes
:vartype watchlists: azure.mgmt.securityinsight.operations.WatchlistsOperations
:ivar watchlist_items: WatchlistItemsOperations operations
:vartype watchlist_items: azure.mgmt.securityinsight.operations.WatchlistItemsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.securityinsight.operations.Operations
:ivar sentinel_onboarding_states: SentinelOnboardingStatesOperations operations
:vartype sentinel_onboarding_states:
azure.mgmt.securityinsight.operations.SentinelOnboardingStatesOperations
:ivar alert_rules: AlertRulesOperations operations
:vartype alert_rules: azure.mgmt.securityinsight.operations.AlertRulesOperations
:ivar actions: ActionsOperations operations
:vartype actions: azure.mgmt.securityinsight.operations.ActionsOperations
:ivar alert_rule_templates: AlertRuleTemplatesOperations operations
:vartype alert_rule_templates:
azure.mgmt.securityinsight.operations.AlertRuleTemplatesOperations
:ivar bookmarks: BookmarksOperations operations
:vartype bookmarks: azure.mgmt.securityinsight.operations.BookmarksOperations
:ivar data_connectors: DataConnectorsOperations operations
:vartype data_connectors: azure.mgmt.securityinsight.operations.DataConnectorsOperations
:ivar automation_rules: AutomationRulesOperations operations
:vartype automation_rules: azure.mgmt.securityinsight.operations.AutomationRulesOperations
:ivar data_connectors_check_requirements: DataConnectorsCheckRequirementsOperations operations
:vartype data_connectors_check_requirements:
azure.mgmt.securityinsight.operations.DataConnectorsCheckRequirementsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.securityinsight.operations.Operations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand All @@ -88,52 +126,103 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.alert_rules = AlertRulesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.actions = ActionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.alert_rule_templates = AlertRuleTemplatesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.automation_rules = AutomationRulesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.incidents = IncidentsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.bookmarks = BookmarksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.bookmark_relations = BookmarkRelationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.bookmark = BookmarkOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.ip_geodata = IPGeodataOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.domain_whois = DomainWhoisOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.entities = EntitiesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.entities_get_timeline = EntitiesGetTimelineOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.entities_relations = EntitiesRelationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.entity_relations = EntityRelationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.entity_queries = EntityQueriesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.entity_query_templates = EntityQueryTemplatesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.incident_comments = IncidentCommentsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.incident_relations = IncidentRelationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.threat_intelligence_indicator = ThreatIntelligenceIndicatorOperations(
self.metadata = MetadataOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.threat_intelligence_indicators = ThreatIntelligenceIndicatorsOperations(
self.office_consents = OfficeConsentsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.threat_intelligence_indicator_metrics = ThreatIntelligenceIndicatorMetricsOperations(
self.sentinel_onboarding_states = SentinelOnboardingStatesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.watchlists = WatchlistsOperations(
self.security_ml_analytics_settings = SecurityMLAnalyticsSettingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.watchlist_items = WatchlistItemsOperations(
self.product_settings = ProductSettingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(
self.source_control = SourceControlOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.sentinel_onboarding_states = SentinelOnboardingStatesOperations(
self.source_controls = SourceControlsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.alert_rules = AlertRulesOperations(
self.threat_intelligence_indicator = ThreatIntelligenceIndicatorOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.actions = ActionsOperations(
self.threat_intelligence_indicators = ThreatIntelligenceIndicatorsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.alert_rule_templates = AlertRuleTemplatesOperations(
self.threat_intelligence_indicator_metrics = ThreatIntelligenceIndicatorMetricsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.bookmarks = BookmarksOperations(
self.watchlists = WatchlistsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.watchlist_items = WatchlistItemsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.data_connectors = DataConnectorsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.automation_rules = AutomationRulesOperations(
self.data_connectors_check_requirements = DataConnectorsCheckRequirementsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class SecurityInsightsConfiguration(Configuration): # pylint: disable=too-many-
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand All @@ -41,7 +41,7 @@ def __init__(
**kwargs: Any
) -> None:
super(SecurityInsightsConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2021-10-01") # type: str
api_version = kwargs.pop('api_version', "2022-07-01-preview") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Loading