Skip to content
Draft
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/python@5.12.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "e432d9cc87bfed320d8feead4b448be9481c9181",
"commit": "9499fb9d2e4b074b1ef440fa471aaa7676666584",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/securityinsights/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/securityinsights/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2022-01-01-preview"
self.api_version = "2022-05-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-securityinsight/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2022-01-01-preview",
"total_api_version_list": ["2022-01-01-preview"],
"chosen_version": "2022-05-01-preview",
"total_api_version_list": ["2022-05-01-preview"],
"client": {
"name": "SecurityInsights",
"filename": "_security_insights",
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.0b2"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2022-01-01-preview"
self.api_version = "2022-05-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-securityinsight/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@
from ._models_py3 import MicrosoftSecurityIncidentCreationAlertRuleTemplate
from ._models_py3 import MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties
from ._models_py3 import MtpCheckRequirements
from ._models_py3 import NicEntity
from ._models_py3 import NicEntityProperties
from ._models_py3 import NrtAlertRule
from ._models_py3 import NrtAlertRuleTemplate
from ._models_py3 import NrtAlertRuleTemplateProperties
Expand Down Expand Up @@ -406,10 +408,12 @@
DeploymentFetchStatus,
DeploymentResult,
DeploymentState,
DeviceImportance,
ElevationToken,
EntityItemQueryKind,
EntityKind,
EntityMappingType,
EntityProviders,
EntityQueryKind,
EntityQueryTemplateKind,
EntityTimelineKind,
Expand Down Expand Up @@ -701,6 +705,8 @@
'MicrosoftSecurityIncidentCreationAlertRuleTemplate',
'MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties',
'MtpCheckRequirements',
'NicEntity',
'NicEntityProperties',
'NrtAlertRule',
'NrtAlertRuleTemplate',
'NrtAlertRuleTemplateProperties',
Expand Down Expand Up @@ -850,10 +856,12 @@
'DeploymentFetchStatus',
'DeploymentResult',
'DeploymentState',
'DeviceImportance',
'ElevationToken',
'EntityItemQueryKind',
'EntityKind',
'EntityMappingType',
'EntityProviders',
'EntityQueryKind',
'EntityQueryTemplateKind',
'EntityTimelineKind',
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,19 @@ class DeploymentState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
QUEUED = "Queued"
CANCELING = "Canceling"

class DeviceImportance(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Device importance, determines if the device classified as 'crown jewel'
"""

#: Unknown - Default value.
UNKNOWN = "Unknown"
#: Low.
LOW = "Low"
#: Normal.
NORMAL = "Normal"
#: High.
HIGH = "High"

class ElevationToken(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The elevation token associated with the process.
"""
Expand Down Expand Up @@ -474,6 +487,8 @@ class EntityKind(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
MAILBOX = "Mailbox"
#: Entity represents submission mail in the system.
SUBMISSION_MAIL = "SubmissionMail"
#: Entity represents network interface in the system.
NIC = "Nic"

class EntityMappingType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The V3 type of the mapped entity
Expand Down Expand Up @@ -516,6 +531,13 @@ class EntityMappingType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
#: Submission mail entity type.
SUBMISSION_MAIL = "SubmissionMail"

class EntityProviders(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The entity provider that is synced.
"""

ACTIVE_DIRECTORY = "ActiveDirectory"
AZURE_ACTIVE_DIRECTORY = "AzureActiveDirectory"

class EntityQueryKind(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The kind of the entity query
"""
Expand Down Expand Up @@ -587,6 +609,8 @@ class EntityType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
MAILBOX = "Mailbox"
#: Entity represents submission mail in the system.
SUBMISSION_MAIL = "SubmissionMail"
#: Entity represents network interface in the system.
NIC = "Nic"

class Enum12(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def build_list_by_alert_rule_request(
rule_id: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}/actions')
Expand Down Expand Up @@ -72,7 +72,7 @@ def build_get_request(
action_id: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}/actions/{actionId}')
Expand Down Expand Up @@ -116,7 +116,7 @@ def build_create_or_update_request(
) -> HttpRequest:
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}/actions/{actionId}')
Expand Down Expand Up @@ -159,7 +159,7 @@ def build_delete_request(
action_id: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}/actions/{actionId}')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def build_list_request(
workspace_name: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRuleTemplates')
Expand Down Expand Up @@ -68,7 +68,7 @@ def build_get_request(
alert_rule_template_id: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRuleTemplates/{alertRuleTemplateId}')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def build_list_request(
workspace_name: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules')
Expand Down Expand Up @@ -69,7 +69,7 @@ def build_get_request(
rule_id: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}')
Expand Down Expand Up @@ -111,7 +111,7 @@ def build_create_or_update_request(
) -> HttpRequest:
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}')
Expand Down Expand Up @@ -152,7 +152,7 @@ def build_delete_request(
rule_id: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def build_get_request(
automation_rule_id: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules/{automationRuleId}')
Expand Down Expand Up @@ -76,7 +76,7 @@ def build_create_or_update_request(
) -> HttpRequest:
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules/{automationRuleId}')
Expand Down Expand Up @@ -117,7 +117,7 @@ def build_delete_request(
automation_rule_id: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules/{automationRuleId}')
Expand Down Expand Up @@ -153,7 +153,7 @@ def build_list_request(
workspace_name: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/automationRules')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def build_expand_request(
) -> HttpRequest:
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}/expand')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def build_list_request(
skip_token: Optional[str] = None,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}/relations')
Expand Down Expand Up @@ -85,7 +85,7 @@ def build_get_request(
relation_name: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}/relations/{relationName}')
Expand Down Expand Up @@ -129,7 +129,7 @@ def build_create_or_update_request(
) -> HttpRequest:
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}/relations/{relationName}')
Expand Down Expand Up @@ -172,7 +172,7 @@ def build_delete_request(
relation_name: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}/relations/{relationName}')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def build_list_request(
workspace_name: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks')
Expand Down Expand Up @@ -69,7 +69,7 @@ def build_get_request(
bookmark_id: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}')
Expand Down Expand Up @@ -111,7 +111,7 @@ def build_create_or_update_request(
) -> HttpRequest:
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}')
Expand Down Expand Up @@ -152,7 +152,7 @@ def build_delete_request(
bookmark_id: str,
**kwargs: Any
) -> HttpRequest:
api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def build_post_request(
) -> HttpRequest:
content_type = kwargs.pop('content_type', None) # type: Optional[str]

api_version = "2022-01-01-preview"
api_version = "2022-05-01-preview"
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectorsCheckRequirements')
Expand Down
Loading