SqlVulnerabilityAssessmentBaselineRulesOperations Class

SqlVulnerabilityAssessmentBaselineRulesOperations async 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.object
SqlVulnerabilityAssessmentBaselineRulesOperations

Constructor

SqlVulnerabilityAssessmentBaselineRulesOperations(client, config, serializer, deserializer)

Parameters

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

models

Alias to model classes used in this operation group.

Methods

add

Add a list of baseline rules. Will overwrite any previously existing results (for all rules).

Add a list of baseline rules. Will overwrite any previously existing results (for all rules).

create_or_update

Creates a Baseline for a rule in a database. Will overwrite any previously existing results.

Creates a Baseline for a rule in a database. Will overwrite any previously existing results.

delete

Deletes a rule from the Baseline of a given database.

Deletes a rule from the Baseline of a given database.

get

Gets the results for a given rule in the Baseline.

Gets the results for a given rule in the Baseline.

list

Gets the results for all rules in the Baseline.

Gets the results for all rules in the Baseline.

add

Add a list of baseline rules. Will overwrite any previously existing results (for all rules).

Add a list of baseline rules. Will overwrite any previously existing results (for all rules).

async add(workspace_id: str, resource_id: str, body: Optional[azure.mgmt.security.models._models_py3.RulesResultsInput] = None, **kwargs) -> azure.mgmt.security.models._models_py3.RulesResults

Parameters

workspace_id
str
Required

The workspace Id.

resource_id
str
Required

The identifier of the resource.

body
RulesResultsInput
default value: None

The baseline rules.

cls
callable

A custom type or function that will be passed the direct response

Returns

RulesResults, or the result of cls(response)

Return type

Exceptions

create_or_update

Creates a Baseline for a rule in a database. Will overwrite any previously existing results.

Creates a Baseline for a rule in a database. Will overwrite any previously existing results.

async create_or_update(rule_id: str, workspace_id: str, resource_id: str, body: Optional[azure.mgmt.security.models._models_py3.RuleResultsInput] = None, **kwargs) -> azure.mgmt.security.models._models_py3.RuleResults

Parameters

rule_id
str
Required

The rule Id.

workspace_id
str
Required

The workspace Id.

resource_id
str
Required

The identifier of the resource.

body
RuleResultsInput
default value: None

The baseline results for this rule.

cls
callable

A custom type or function that will be passed the direct response

Returns

RuleResults, or the result of cls(response)

Return type

Exceptions

delete

Deletes a rule from the Baseline of a given database.

Deletes a rule from the Baseline of a given database.

async delete(rule_id: str, workspace_id: str, resource_id: str, **kwargs) -> None

Parameters

rule_id
str
Required

The rule Id.

workspace_id
str
Required

The workspace Id.

resource_id
str
Required

The identifier of the resource.

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 results for a given rule in the Baseline.

Gets the results for a given rule in the Baseline.

async get(rule_id: str, workspace_id: str, resource_id: str, **kwargs) -> azure.mgmt.security.models._models_py3.RuleResults

Parameters

rule_id
str
Required

The rule Id.

workspace_id
str
Required

The workspace Id.

resource_id
str
Required

The identifier of the resource.

cls
callable

A custom type or function that will be passed the direct response

Returns

RuleResults, or the result of cls(response)

Return type

Exceptions

list

Gets the results for all rules in the Baseline.

Gets the results for all rules in the Baseline.

async list(workspace_id: str, resource_id: str, **kwargs) -> azure.mgmt.security.models._models_py3.RulesResults

Parameters

workspace_id
str
Required

The workspace Id.

resource_id
str
Required

The identifier of the resource.

cls
callable

A custom type or function that will be passed the direct response

Returns

RulesResults, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.security.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\security\\models\\__init__.py'>