Debian Codegraph @

docs/dyn/workloadmanager_v1.projects.locations.rules.html

raw
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 &quot;rules&quot;: [ # All rules in response.
115 { # A rule to be evaluated.
116 &quot;assetType&quot;: &quot;A String&quot;, # The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
117 &quot;description&quot;: &quot;A String&quot;, # Describe rule in plain language.
118 &quot;displayName&quot;: &quot;A String&quot;, # The name display in UI.
119 &quot;errorMessage&quot;: &quot;A String&quot;, # The message template for rule.
120 &quot;name&quot;: &quot;A String&quot;, # Rule name.
121 &quot;primaryCategory&quot;: &quot;A String&quot;, # The primary category.
122 &quot;remediation&quot;: &quot;A String&quot;, # The remediation for the rule.
123 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The version of the rule.
124 &quot;ruleType&quot;: &quot;A String&quot;, # The type of the rule.
125 &quot;secondaryCategory&quot;: &quot;A String&quot;, # The secondary category.
126 &quot;severity&quot;: &quot;A String&quot;, # The severity of the rule.
127 &quot;tags&quot;: [ # List of user-defined tags.
128 &quot;A String&quot;,
129 ],
130 &quot;uri&quot;: &quot;A String&quot;, # The document url for the rule.
131 },
132 ],
133 }</pre>
134 </div>
135
136 </body></html>