SensitivityLabelsOperations Class
SensitivityLabelsOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectSensitivityLabelsOperations
Constructor
SensitivityLabelsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create_or_update |
Creates or updates the sensitivity label of a given column. |
| delete |
Deletes the sensitivity label of a given column. |
| disable_recommendation |
Disables sensitivity recommendations on a given column. |
| enable_recommendation |
Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). |
| get |
Gets the sensitivity label of a given column. |
| list_current_by_database |
Gets the sensitivity labels of a given database. |
| list_recommended_by_database |
Gets the sensitivity labels of a given database. |
| update |
Update sensitivity labels of a given database using an operations batch. |
create_or_update
Creates or updates the sensitivity label of a given column.
create_or_update(resource_group_name: str, server_name: str, database_name: str, schema_name: str, table_name: str, column_name: str, parameters: _models.SensitivityLabel, **kwargs: Any) -> _models.SensitivityLabel
Parameters
- resource_group_name
- str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SensitivityLabel, or the result of cls(response)
Return type
Exceptions
delete
Deletes the sensitivity label of a given column.
delete(resource_group_name: str, server_name: str, database_name: str, schema_name: str, table_name: str, column_name: str, **kwargs: Any) -> None
Parameters
- resource_group_name
- str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
disable_recommendation
Disables sensitivity recommendations on a given column.
disable_recommendation(resource_group_name: str, server_name: str, database_name: str, schema_name: str, table_name: str, column_name: str, **kwargs: Any) -> None
Parameters
- resource_group_name
- str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
enable_recommendation
Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns).
enable_recommendation(resource_group_name: str, server_name: str, database_name: str, schema_name: str, table_name: str, column_name: str, **kwargs: Any) -> None
Parameters
- resource_group_name
- str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Gets the sensitivity label of a given column.
get(resource_group_name: str, server_name: str, database_name: str, schema_name: str, table_name: str, column_name: str, sensitivity_label_source: Union[str, _models.SensitivityLabelSource], **kwargs: Any) -> _models.SensitivityLabel
Parameters
- resource_group_name
- str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- sensitivity_label_source
- str or SensitivityLabelSource
The source of the sensitivity label.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SensitivityLabel, or the result of cls(response)
Return type
Exceptions
list_current_by_database
Gets the sensitivity labels of a given database.
list_current_by_database(resource_group_name: str, server_name: str, database_name: str, skip_token: Optional[str] = None, count: Optional[bool] = None, filter: Optional[str] = None, **kwargs: Any) -> Iterable[_models.SensitivityLabelListResult]
Parameters
- resource_group_name
- str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- skip_token
- str
- count
- bool
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either SensitivityLabelListResult or the result of cls(response)
Return type
Exceptions
list_recommended_by_database
Gets the sensitivity labels of a given database.
list_recommended_by_database(resource_group_name: str, server_name: str, database_name: str, skip_token: Optional[str] = None, include_disabled_recommendations: Optional[bool] = None, filter: Optional[str] = None, **kwargs: Any) -> Iterable[_models.SensitivityLabelListResult]
Parameters
- resource_group_name
- str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- skip_token
- str
- include_disabled_recommendations
- bool
Specifies whether to include disabled recommendations or not.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either SensitivityLabelListResult or the result of cls(response)
Return type
Exceptions
update
Update sensitivity labels of a given database using an operations batch.
update(resource_group_name: str, server_name: str, database_name: str, parameters: _models.SensitivityLabelUpdateList, **kwargs: Any) -> None
Parameters
- resource_group_name
- str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- parameters
- SensitivityLabelUpdateList
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.sql.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\sql\\models\\__init__.py'>
Feedback
Submit and view feedback for