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) -> None

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).

add(workspace_id: str, resource_id: str, body: typing.Union[_ForwardRef('_models.RulesResultsInput'), NoneType] = 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

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.

create_or_update(rule_id: str, workspace_id: str, resource_id: str, body: typing.Union[_ForwardRef('_models.RuleResultsInput'), NoneType] = 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

delete

Deletes a rule from the Baseline of a given database.

Deletes a rule from the Baseline of a given database.

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

get

Gets the results for a given rule in the Baseline.

Gets the results for a given rule in the Baseline.

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

list

Gets the results for all rules in the Baseline.

Gets the results for all rules in the Baseline.

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

Attributes

models

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