| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="workloadmanager_v1.html">Workload Manager API</a> . <a href="workloadmanager_v1.projects.html">projects</a> . <a href="workloadmanager_v1.projects.locations.html">locations</a> . <a href="workloadmanager_v1.projects.locations.rules.html">rules</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#list">list(parent, customRulesBucket=None, evaluationType=None, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Lists rules in a given project.</p> |
| 83 |
<h3>Method Details</h3> |
| 84 |
<div class="method"> |
| 85 |
<code class="details" id="close">close()</code> |
| 86 |
<pre>Close httplib2 connections.</pre> |
| 87 |
</div> |
| 88 |
|
| 89 |
<div class="method"> |
| 90 |
<code class="details" id="list">list(parent, customRulesBucket=None, evaluationType=None, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 91 |
<pre>Lists rules in a given project. |
| 92 |
|
| 93 |
Args: |
| 94 |
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) |
| 95 |
customRulesBucket: string, The Cloud Storage bucket name for custom rules. |
| 96 |
evaluationType: string, Optional. The evaluation type of the rules will be applied to. The Cloud Storage bucket name for custom rules. |
| 97 |
Allowed values |
| 98 |
EVALUATION_TYPE_UNSPECIFIED - Not specified. |
| 99 |
SAP - SAP best practices. |
| 100 |
SQL_SERVER - SQL best practices. |
| 101 |
OTHER - Customized best practices. |
| 102 |
filter: string, Filter based on primary_category, secondary_category. |
| 103 |
pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
| 104 |
pageToken: string, A token identifying a page of results the server should return. |
| 105 |
x__xgafv: string, V1 error format. |
| 106 |
Allowed values |
| 107 |
1 - v1 error format |
| 108 |
2 - v2 error format |
| 109 |
|
| 110 |
Returns: |
| 111 |
An object of the form: |
| 112 |
|
| 113 |
{ # Response message for the ListRules RPC. |
| 114 |
"rules": [ # All rules in response. |
| 115 |
{ # A rule to be evaluated. |
| 116 |
"assetType": "A String", # The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types. |
| 117 |
"description": "A String", # Describe rule in plain language. |
| 118 |
"displayName": "A String", # The name display in UI. |
| 119 |
"errorMessage": "A String", # The message template for rule. |
| 120 |
"name": "A String", # Rule name. |
| 121 |
"primaryCategory": "A String", # The primary category. |
| 122 |
"remediation": "A String", # The remediation for the rule. |
| 123 |
"revisionId": "A String", # Output only. The version of the rule. |
| 124 |
"ruleType": "A String", # The type of the rule. |
| 125 |
"secondaryCategory": "A String", # The secondary category. |
| 126 |
"severity": "A String", # The severity of the rule. |
| 127 |
"tags": [ # List of user-defined tags. |
| 128 |
"A String", |
| 129 |
], |
| 130 |
"uri": "A String", # The document url for the rule. |
| 131 |
}, |
| 132 |
], |
| 133 |
}</pre> |
| 134 |
</div> |
| 135 |
|
| 136 |
</body></html> |