ManagedDatabaseSensitivityLabelsOperations Class
ManagedDatabaseSensitivityLabelsOperations 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.objectManagedDatabaseSensitivityLabelsOperations
Constructor
ManagedDatabaseSensitivityLabelsOperations(client, config, serializer, deserializer)
Parameters
Name | Description |
---|---|
client
Required
|
Client for service requests. |
config
Required
|
Configuration of service client. |
serializer
Required
|
An object model serializer. |
deserializer
Required
|
An object model deserializer. |
Variables
Name | Description |
---|---|
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, managed_instance_name: str, database_name: str, schema_name: str, table_name: str, column_name: str, parameters: '_models.SensitivityLabel', **kwargs: Any) -> _models.SensitivityLabel
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
managed_instance_name
Required
|
The name of the managed instance. |
database_name
Required
|
The name of the database. |
schema_name
Required
|
The name of the schema. |
table_name
Required
|
The name of the table. |
column_name
Required
|
The name of the column. |
parameters
Required
|
The column sensitivity label resource. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
SensitivityLabel, or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Deletes the sensitivity label of a given column.
delete(resource_group_name: str, managed_instance_name: str, database_name: str, schema_name: str, table_name: str, column_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
managed_instance_name
Required
|
The name of the managed instance. |
database_name
Required
|
The name of the database. |
schema_name
Required
|
The name of the schema. |
table_name
Required
|
The name of the table. |
column_name
Required
|
The name of the column. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
None, or the result of cls(response) |
Exceptions
Type | Description |
---|---|
disable_recommendation
Disables sensitivity recommendations on a given column.
disable_recommendation(resource_group_name: str, managed_instance_name: str, database_name: str, schema_name: str, table_name: str, column_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
managed_instance_name
Required
|
The name of the managed instance. |
database_name
Required
|
The name of the database. |
schema_name
Required
|
The name of the schema. |
table_name
Required
|
The name of the table. |
column_name
Required
|
The name of the column. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
None, or the result of cls(response) |
Exceptions
Type | Description |
---|---|
enable_recommendation
Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns).
enable_recommendation(resource_group_name: str, managed_instance_name: str, database_name: str, schema_name: str, table_name: str, column_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
managed_instance_name
Required
|
The name of the managed instance. |
database_name
Required
|
The name of the database. |
schema_name
Required
|
The name of the schema. |
table_name
Required
|
The name of the table. |
column_name
Required
|
The name of the column. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
None, or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets the sensitivity label of a given column.
get(resource_group_name: str, managed_instance_name: str, database_name: str, schema_name: str, table_name: str, column_name: str, sensitivity_label_source: str | '_models.SensitivityLabelSource', **kwargs: Any) -> _models.SensitivityLabel
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
managed_instance_name
Required
|
The name of the managed instance. |
database_name
Required
|
The name of the database. |
schema_name
Required
|
The name of the schema. |
table_name
Required
|
The name of the table. |
column_name
Required
|
The name of the column. |
sensitivity_label_source
Required
|
The source of the sensitivity label. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
SensitivityLabel, or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_current_by_database
Gets the sensitivity labels of a given database.
list_current_by_database(resource_group_name: str, managed_instance_name: str, database_name: str, skip_token: str | None = None, count: bool | None = None, filter: str | None = None, **kwargs: Any) -> Iterable['_models.SensitivityLabelListResult']
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
managed_instance_name
Required
|
The name of the managed instance. |
database_name
Required
|
The name of the database. |
skip_token
|
Default value: None
|
count
|
Default value: None
|
filter
|
An OData filter expression that filters elements in the collection. Default value: None
|
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either SensitivityLabelListResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_recommended_by_database
Gets the sensitivity labels of a given database.
list_recommended_by_database(resource_group_name: str, managed_instance_name: str, database_name: str, skip_token: str | None = None, include_disabled_recommendations: bool | None = None, filter: str | None = None, **kwargs: Any) -> Iterable['_models.SensitivityLabelListResult']
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
managed_instance_name
Required
|
The name of the managed instance. |
database_name
Required
|
The name of the database. |
skip_token
|
Default value: None
|
include_disabled_recommendations
|
Specifies whether to include disabled recommendations or not. Default value: None
|
filter
|
An OData filter expression that filters elements in the collection. Default value: None
|
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either SensitivityLabelListResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
update
Update sensitivity labels of a given database using an operations batch.
update(resource_group_name: str, managed_instance_name: str, database_name: str, parameters: '_models.SensitivityLabelUpdateList', **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
managed_instance_name
Required
|
The name of the managed instance. |
database_name
Required
|
The name of the database. |
parameters
Required
|
|
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
None, or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.sql.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\sql\\models\\__init__.py'>
Azure SDK for Python