Close httplib2 connections.
Lists rules in a given project.
close()
Close httplib2 connections.
list(parent, customRulesBucket=None, evaluationType=None, filter=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists rules in a given project.
Args:
parent: string, Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions. (required)
customRulesBucket: string, The Cloud Storage bucket name for custom rules.
evaluationType: string, Optional. The evaluation type of the rules will be applied to. The Cloud Storage bucket name for custom rules.
Allowed values
EVALUATION_TYPE_UNSPECIFIED - Not specified.
SAP - SAP best practices.
SQL_SERVER - SQL best practices.
OTHER - Customized best practices.
filter: string, Filter based on primary_category, secondary_category.
pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
pageToken: string, A token identifying a page of results the server should return.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for the ListRules RPC.
"rules": [ # All rules in response.
{ # A rule to be evaluated.
"assetType": "A String", # The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
"description": "A String", # Describe rule in plain language.
"displayName": "A String", # The name display in UI.
"errorMessage": "A String", # The message template for rule.
"name": "A String", # Rule name.
"primaryCategory": "A String", # The primary category.
"remediation": "A String", # The remediation for the rule.
"revisionId": "A String", # Output only. The version of the rule.
"ruleType": "A String", # The type of the rule.
"secondaryCategory": "A String", # The secondary category.
"severity": "A String", # The severity of the rule.
"tags": [ # List of user-defined tags.
"A String",
],
"uri": "A String", # The document url for the rule.
},
],
}