SqlVulnerabilityAssessmentBaselineRules Interface

public interface SqlVulnerabilityAssessmentBaselineRules

Resource collection API of SqlVulnerabilityAssessmentBaselineRules.

Method Summary

Modifier and Type Method and Description
abstract RulesResults add(String workspaceId, String resourceId)

Add a list of baseline rules.

abstract Response<RulesResults> addWithResponse(String workspaceId, String resourceId, RulesResultsInput body, Context context)

Add a list of baseline rules.

abstract Blank define(String name)

Begins definition for a new RuleResults resource.

abstract void delete(String ruleId, String workspaceId, String resourceId)

Deletes a rule from the Baseline of a given database.

abstract Response<Void> deleteWithResponse(String ruleId, String workspaceId, String resourceId, Context context)

Deletes a rule from the Baseline of a given database.

abstract RuleResults get(String ruleId, String workspaceId, String resourceId)

Gets the results for a given rule in the Baseline.

abstract Response<RuleResults> getWithResponse(String ruleId, String workspaceId, String resourceId, Context context)

Gets the results for a given rule in the Baseline.

abstract RulesResults list(String workspaceId, String resourceId)

Gets the results for all rules in the Baseline.

abstract Response<RulesResults> listWithResponse(String workspaceId, String resourceId, Context context)

Gets the results for all rules in the Baseline.

Method Details

add

public abstract RulesResults add(String workspaceId, String resourceId)

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

Parameters:

workspaceId - The workspace Id.
resourceId - The identifier of the resource.

Returns:

a list of rules results.

addWithResponse

public abstract Response addWithResponse(String workspaceId, String resourceId, RulesResultsInput body, Context context)

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

Parameters:

workspaceId - The workspace Id.
resourceId - The identifier of the resource.
body - The baseline rules.
context - The context to associate with this operation.

Returns:

a list of rules results along with Response<T>.

define

public abstract RuleResults.DefinitionStages.Blank define(String name)

Begins definition for a new RuleResults resource.

Parameters:

name - resource name.

Returns:

the first stage of the new RuleResults definition.

delete

public abstract void delete(String ruleId, String workspaceId, String resourceId)

Deletes a rule from the Baseline of a given database.

Parameters:

ruleId - The rule Id.
workspaceId - The workspace Id.
resourceId - The identifier of the resource.

deleteWithResponse

public abstract Response deleteWithResponse(String ruleId, String workspaceId, String resourceId, Context context)

Deletes a rule from the Baseline of a given database.

Parameters:

ruleId - The rule Id.
workspaceId - The workspace Id.
resourceId - The identifier of the resource.
context - The context to associate with this operation.

Returns:

get

public abstract RuleResults get(String ruleId, String workspaceId, String resourceId)

Gets the results for a given rule in the Baseline.

Parameters:

ruleId - The rule Id.
workspaceId - The workspace Id.
resourceId - The identifier of the resource.

Returns:

the results for a given rule in the Baseline.

getWithResponse

public abstract Response getWithResponse(String ruleId, String workspaceId, String resourceId, Context context)

Gets the results for a given rule in the Baseline.

Parameters:

ruleId - The rule Id.
workspaceId - The workspace Id.
resourceId - The identifier of the resource.
context - The context to associate with this operation.

Returns:

the results for a given rule in the Baseline along with Response<T>.

list

public abstract RulesResults list(String workspaceId, String resourceId)

Gets the results for all rules in the Baseline.

Parameters:

workspaceId - The workspace Id.
resourceId - The identifier of the resource.

Returns:

the results for all rules in the Baseline.

listWithResponse

public abstract Response listWithResponse(String workspaceId, String resourceId, Context context)

Gets the results for all rules in the Baseline.

Parameters:

workspaceId - The workspace Id.
resourceId - The identifier of the resource.
context - The context to associate with this operation.

Returns:

the results for all rules in the Baseline along with Response<T>.

Applies to