Skip to content
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
2 changes: 2 additions & 0 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@
AutomaticTuningServerMode,
AutomaticTuningServerReason,
RestorePointType,
SensitivityLabelRank,
ManagementOperationState,
CreateMode,
SampleName,
Expand Down Expand Up @@ -814,6 +815,7 @@
'AutomaticTuningServerMode',
'AutomaticTuningServerReason',
'RestorePointType',
'SensitivityLabelRank',
'ManagementOperationState',
'CreateMode',
'SampleName',
Expand Down
5 changes: 5 additions & 0 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7252,6 +7252,9 @@ class SensitivityLabel(ProxyResource):
recommended sensitivity label only. Specifies whether the sensitivity
recommendation on this column is disabled (dismissed) or not.
:vartype is_disabled: bool
:param rank: Possible values include: 'None', 'Low', 'Medium', 'High',
'Critical'
:type rank: str or ~azure.mgmt.sql.models.SensitivityLabelRank
"""

_validation = {
Expand All @@ -7270,6 +7273,7 @@ class SensitivityLabel(ProxyResource):
'information_type': {'key': 'properties.informationType', 'type': 'str'},
'information_type_id': {'key': 'properties.informationTypeId', 'type': 'str'},
'is_disabled': {'key': 'properties.isDisabled', 'type': 'bool'},
'rank': {'key': 'properties.rank', 'type': 'SensitivityLabelRank'},
}

def __init__(self, **kwargs):
Expand All @@ -7279,6 +7283,7 @@ def __init__(self, **kwargs):
self.information_type = kwargs.get('information_type', None)
self.information_type_id = kwargs.get('information_type_id', None)
self.is_disabled = None
self.rank = kwargs.get('rank', None)


class Server(TrackedResource):
Expand Down
7 changes: 6 additions & 1 deletion sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7252,6 +7252,9 @@ class SensitivityLabel(ProxyResource):
recommended sensitivity label only. Specifies whether the sensitivity
recommendation on this column is disabled (dismissed) or not.
:vartype is_disabled: bool
:param rank: Possible values include: 'None', 'Low', 'Medium', 'High',
'Critical'
:type rank: str or ~azure.mgmt.sql.models.SensitivityLabelRank
"""

_validation = {
Expand All @@ -7270,15 +7273,17 @@ class SensitivityLabel(ProxyResource):
'information_type': {'key': 'properties.informationType', 'type': 'str'},
'information_type_id': {'key': 'properties.informationTypeId', 'type': 'str'},
'is_disabled': {'key': 'properties.isDisabled', 'type': 'bool'},
'rank': {'key': 'properties.rank', 'type': 'SensitivityLabelRank'},
}

def __init__(self, *, label_name: str=None, label_id: str=None, information_type: str=None, information_type_id: str=None, **kwargs) -> None:
def __init__(self, *, label_name: str=None, label_id: str=None, information_type: str=None, information_type_id: str=None, rank=None, **kwargs) -> None:
super(SensitivityLabel, self).__init__(**kwargs)
self.label_name = label_name
self.label_id = label_id
self.information_type = information_type
self.information_type_id = information_type_id
self.is_disabled = None
self.rank = rank


class Server(TrackedResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,15 @@ class RestorePointType(str, Enum):
discrete = "DISCRETE"


class SensitivityLabelRank(str, Enum):

none = "None"
low = "Low"
medium = "Medium"
high = "High"
critical = "Critical"


class ManagementOperationState(str, Enum):

pending = "Pending"
Expand Down