Skip to content

Commit 6326917

Browse files
author
SDKAuto
committed
CodeGen from PR 18536 in Azure/azure-rest-api-specs
Merge 5705de7d2625189c540fdaae108a4675816b1787 into d521635d9d9543c0dab932d9d4b7911dcee1de3b
1 parent 72da32f commit 6326917

40 files changed

+445
-169
lines changed

sdk/securityinsight/azure-mgmt-securityinsight/_meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"@autorest/python@5.12.0",
55
"@autorest/modelerfour@4.19.3"
66
],
7-
"commit": "e432d9cc87bfed320d8feead4b448be9481c9181",
7+
"commit": "9499fb9d2e4b074b1ef440fa471aaa7676666584",
88
"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/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
9+
"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",
1010
"readme": "specification/securityinsights/resource-manager/readme.md"
1111
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2022-01-01-preview"
48+
self.api_version = "2022-05-01-preview"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-securityinsight/{}'.format(VERSION))
5151
self._configure(**kwargs)

sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/_metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2022-01-01-preview",
3-
"total_api_version_list": ["2022-01-01-preview"],
2+
"chosen_version": "2022-05-01-preview",
3+
"total_api_version_list": ["2022-05-01-preview"],
44
"client": {
55
"name": "SecurityInsights",
66
"filename": "_security_insights",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b2"
9+
VERSION = "1.0.0b1"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2022-01-01-preview"
48+
self.api_version = "2022-05-01-preview"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-securityinsight/{}'.format(VERSION))
5151
self._configure(**kwargs)

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@
254254
from ._models_py3 import MicrosoftSecurityIncidentCreationAlertRuleTemplate
255255
from ._models_py3 import MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties
256256
from ._models_py3 import MtpCheckRequirements
257+
from ._models_py3 import NicEntity
258+
from ._models_py3 import NicEntityProperties
257259
from ._models_py3 import NrtAlertRule
258260
from ._models_py3 import NrtAlertRuleTemplate
259261
from ._models_py3 import NrtAlertRuleTemplateProperties
@@ -406,10 +408,12 @@
406408
DeploymentFetchStatus,
407409
DeploymentResult,
408410
DeploymentState,
411+
DeviceImportance,
409412
ElevationToken,
410413
EntityItemQueryKind,
411414
EntityKind,
412415
EntityMappingType,
416+
EntityProviders,
413417
EntityQueryKind,
414418
EntityQueryTemplateKind,
415419
EntityTimelineKind,
@@ -701,6 +705,8 @@
701705
'MicrosoftSecurityIncidentCreationAlertRuleTemplate',
702706
'MicrosoftSecurityIncidentCreationAlertRuleTemplateProperties',
703707
'MtpCheckRequirements',
708+
'NicEntity',
709+
'NicEntityProperties',
704710
'NrtAlertRule',
705711
'NrtAlertRuleTemplate',
706712
'NrtAlertRuleTemplateProperties',
@@ -850,10 +856,12 @@
850856
'DeploymentFetchStatus',
851857
'DeploymentResult',
852858
'DeploymentState',
859+
'DeviceImportance',
853860
'ElevationToken',
854861
'EntityItemQueryKind',
855862
'EntityKind',
856863
'EntityMappingType',
864+
'EntityProviders',
857865
'EntityQueryKind',
858866
'EntityQueryTemplateKind',
859867
'EntityTimelineKind',

sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/_models_py3.py

Lines changed: 304 additions & 60 deletions
Large diffs are not rendered by default.

sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/models/_security_insights_enums.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,19 @@ class DeploymentState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
412412
QUEUED = "Queued"
413413
CANCELING = "Canceling"
414414

415+
class DeviceImportance(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
416+
"""Device importance, determines if the device classified as 'crown jewel'
417+
"""
418+
419+
#: Unknown - Default value.
420+
UNKNOWN = "Unknown"
421+
#: Low.
422+
LOW = "Low"
423+
#: Normal.
424+
NORMAL = "Normal"
425+
#: High.
426+
HIGH = "High"
427+
415428
class ElevationToken(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
416429
"""The elevation token associated with the process.
417430
"""
@@ -474,6 +487,8 @@ class EntityKind(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
474487
MAILBOX = "Mailbox"
475488
#: Entity represents submission mail in the system.
476489
SUBMISSION_MAIL = "SubmissionMail"
490+
#: Entity represents network interface in the system.
491+
NIC = "Nic"
477492

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

534+
class EntityProviders(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
535+
"""The entity provider that is synced.
536+
"""
537+
538+
ACTIVE_DIRECTORY = "ActiveDirectory"
539+
AZURE_ACTIVE_DIRECTORY = "AzureActiveDirectory"
540+
519541
class EntityQueryKind(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
520542
"""The kind of the entity query
521543
"""
@@ -587,6 +609,8 @@ class EntityType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
587609
MAILBOX = "Mailbox"
588610
#: Entity represents submission mail in the system.
589611
SUBMISSION_MAIL = "SubmissionMail"
612+
#: Entity represents network interface in the system.
613+
NIC = "Nic"
590614

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

sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_actions_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def build_list_by_alert_rule_request(
3434
rule_id: str,
3535
**kwargs: Any
3636
) -> HttpRequest:
37-
api_version = "2022-01-01-preview"
37+
api_version = "2022-05-01-preview"
3838
accept = "application/json"
3939
# Construct URL
4040
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}/actions')
@@ -72,7 +72,7 @@ def build_get_request(
7272
action_id: str,
7373
**kwargs: Any
7474
) -> HttpRequest:
75-
api_version = "2022-01-01-preview"
75+
api_version = "2022-05-01-preview"
7676
accept = "application/json"
7777
# Construct URL
7878
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}/actions/{actionId}')
@@ -116,7 +116,7 @@ def build_create_or_update_request(
116116
) -> HttpRequest:
117117
content_type = kwargs.pop('content_type', None) # type: Optional[str]
118118

119-
api_version = "2022-01-01-preview"
119+
api_version = "2022-05-01-preview"
120120
accept = "application/json"
121121
# Construct URL
122122
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}/actions/{actionId}')
@@ -159,7 +159,7 @@ def build_delete_request(
159159
action_id: str,
160160
**kwargs: Any
161161
) -> HttpRequest:
162-
api_version = "2022-01-01-preview"
162+
api_version = "2022-05-01-preview"
163163
accept = "application/json"
164164
# Construct URL
165165
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRules/{ruleId}/actions/{actionId}')

sdk/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight/operations/_alert_rule_templates_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def build_list_request(
3232
workspace_name: str,
3333
**kwargs: Any
3434
) -> HttpRequest:
35-
api_version = "2022-01-01-preview"
35+
api_version = "2022-05-01-preview"
3636
accept = "application/json"
3737
# Construct URL
3838
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRuleTemplates')
@@ -68,7 +68,7 @@ def build_get_request(
6868
alert_rule_template_id: str,
6969
**kwargs: Any
7070
) -> HttpRequest:
71-
api_version = "2022-01-01-preview"
71+
api_version = "2022-05-01-preview"
7272
accept = "application/json"
7373
# Construct URL
7474
url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/alertRuleTemplates/{alertRuleTemplateId}')

0 commit comments

Comments
 (0)