Debian Codegraph @

docs/dyn/workloadmanager_v1.projects.locations.evaluations.executions.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.evaluations.html">evaluations</a> . <a href="workloadmanager_v1.projects.locations.evaluations.executions.html">executions</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="workloadmanager_v1.projects.locations.evaluations.executions.results.html">results()</a></code>
79 </p>
80 <p class="firstline">Returns the results Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="workloadmanager_v1.projects.locations.evaluations.executions.scannedResources.html">scannedResources()</a></code>
84 </p>
85 <p class="firstline">Returns the scannedResources Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Deletes a single Execution.</p>
93 <p class="toc_element">
94 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
95 <p class="firstline">Gets details of a single Execution.</p>
96 <p class="toc_element">
97 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
98 <p class="firstline">Lists Executions in a given project and location.</p>
99 <p class="toc_element">
100 <code><a href="#list_next">list_next()</a></code></p>
101 <p class="firstline">Retrieves the next page of results.</p>
102 <p class="toc_element">
103 <code><a href="#run">run(name, body=None, x__xgafv=None)</a></code></p>
104 <p class="firstline">Creates a new Execution in a given project and location.</p>
105 <h3>Method Details</h3>
106 <div class="method">
107 <code class="details" id="close">close()</code>
108 <pre>Close httplib2 connections.</pre>
109 </div>
110
111 <div class="method">
112 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
113 <pre>Deletes a single Execution.
114
115 Args:
116 name: string, Required. Name of the resource. (required)
117 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
118 x__xgafv: string, V1 error format.
119 Allowed values
120 1 - v1 error format
121 2 - v2 error format
122
123 Returns:
124 An object of the form:
125
126 { # This resource represents a long-running operation that is the result of a network API call.
127 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
128 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
129 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
130 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
131 {
132 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
133 },
134 ],
135 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
136 },
137 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
138 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
139 },
140 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
141 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
142 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
143 },
144 }</pre>
145 </div>
146
147 <div class="method">
148 <code class="details" id="get">get(name, x__xgafv=None)</code>
149 <pre>Gets details of a single Execution.
150
151 Args:
152 name: string, Required. Name of the resource. (required)
153 x__xgafv: string, V1 error format.
154 Allowed values
155 1 - v1 error format
156 2 - v2 error format
157
158 Returns:
159 An object of the form:
160
161 { # Execution that represents a single run of an Evaluation.
162 &quot;endTime&quot;: &quot;A String&quot;, # Output only. [Output only] End time stamp.
163 &quot;engine&quot;: &quot;A String&quot;, # Optional. Engine.
164 &quot;evaluationId&quot;: &quot;A String&quot;, # Output only. [Output only] Evaluation ID.
165 &quot;externalDataSources&quot;: [ # Optional. External data sources.
166 { # External data sources for an execution.
167 &quot;assetType&quot;: &quot;A String&quot;, # Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user.
168 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data.
169 &quot;type&quot;: &quot;A String&quot;, # Required. Type of external data source.
170 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID}.
171 },
172 ],
173 &quot;inventoryTime&quot;: &quot;A String&quot;, # Output only. [Output only] Inventory time stamp.
174 &quot;labels&quot;: { # Labels as key value pairs.
175 &quot;a_key&quot;: &quot;A String&quot;,
176 },
177 &quot;name&quot;: &quot;A String&quot;, # The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
178 &quot;notices&quot;: [ # Output only. Additional information generated by the execution.
179 { # Additional information generated by an execution.
180 &quot;message&quot;: &quot;A String&quot;, # Output only. Message of the notice.
181 },
182 ],
183 &quot;resultSummary&quot;: { # Execution summary. # Output only. [Output only] Result summary for the execution.
184 &quot;failures&quot;: &quot;A String&quot;, # Output only. Number of failures.
185 &quot;newFailures&quot;: &quot;A String&quot;, # Output only. Number of new failures compared to the previous execution.
186 &quot;newFixes&quot;: &quot;A String&quot;, # Output only. Number of new fixes compared to the previous execution.
187 },
188 &quot;ruleResults&quot;: [ # Output only. Execution result summary per rule.
189 { # Execution result summary per rule.
190 &quot;message&quot;: &quot;A String&quot;, # Execution message, if any.
191 &quot;resultCount&quot;: &quot;A String&quot;, # Number of violations.
192 &quot;rule&quot;: &quot;A String&quot;, # Rule name as plain text like `sap-hana-configured`.
193 &quot;scannedResourceCount&quot;: &quot;A String&quot;, # Number of total scanned resources.
194 &quot;state&quot;: &quot;A String&quot;, # Output only. The execution status.
195 },
196 ],
197 &quot;runType&quot;: &quot;A String&quot;, # Type which represents whether the execution executed directly by user or scheduled according to the `Evaluation.schedule` field.
198 &quot;startTime&quot;: &quot;A String&quot;, # Output only. [Output only] Start time stamp.
199 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] State.
200 }</pre>
201 </div>
202
203 <div class="method">
204 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
205 <pre>Lists Executions in a given project and location.
206
207 Args:
208 parent: string, Required. The resource prefix of the Execution using the form: `projects/{project}/locations/{location}/evaluations/{evaluation}`. (required)
209 filter: string, Filtering results.
210 orderBy: string, Field to sort by. See https://google.aip.dev/132#ordering for more details.
211 pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
212 pageToken: string, A token identifying a page of results the server should return.
213 x__xgafv: string, V1 error format.
214 Allowed values
215 1 - v1 error format
216 2 - v2 error format
217
218 Returns:
219 An object of the form:
220
221 { # Response message for the ListExecutions RPC.
222 &quot;executions&quot;: [ # The list of Execution.
223 { # Execution that represents a single run of an Evaluation.
224 &quot;endTime&quot;: &quot;A String&quot;, # Output only. [Output only] End time stamp.
225 &quot;engine&quot;: &quot;A String&quot;, # Optional. Engine.
226 &quot;evaluationId&quot;: &quot;A String&quot;, # Output only. [Output only] Evaluation ID.
227 &quot;externalDataSources&quot;: [ # Optional. External data sources.
228 { # External data sources for an execution.
229 &quot;assetType&quot;: &quot;A String&quot;, # Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user.
230 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data.
231 &quot;type&quot;: &quot;A String&quot;, # Required. Type of external data source.
232 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID}.
233 },
234 ],
235 &quot;inventoryTime&quot;: &quot;A String&quot;, # Output only. [Output only] Inventory time stamp.
236 &quot;labels&quot;: { # Labels as key value pairs.
237 &quot;a_key&quot;: &quot;A String&quot;,
238 },
239 &quot;name&quot;: &quot;A String&quot;, # The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
240 &quot;notices&quot;: [ # Output only. Additional information generated by the execution.
241 { # Additional information generated by an execution.
242 &quot;message&quot;: &quot;A String&quot;, # Output only. Message of the notice.
243 },
244 ],
245 &quot;resultSummary&quot;: { # Execution summary. # Output only. [Output only] Result summary for the execution.
246 &quot;failures&quot;: &quot;A String&quot;, # Output only. Number of failures.
247 &quot;newFailures&quot;: &quot;A String&quot;, # Output only. Number of new failures compared to the previous execution.
248 &quot;newFixes&quot;: &quot;A String&quot;, # Output only. Number of new fixes compared to the previous execution.
249 },
250 &quot;ruleResults&quot;: [ # Output only. Execution result summary per rule.
251 { # Execution result summary per rule.
252 &quot;message&quot;: &quot;A String&quot;, # Execution message, if any.
253 &quot;resultCount&quot;: &quot;A String&quot;, # Number of violations.
254 &quot;rule&quot;: &quot;A String&quot;, # Rule name as plain text like `sap-hana-configured`.
255 &quot;scannedResourceCount&quot;: &quot;A String&quot;, # Number of total scanned resources.
256 &quot;state&quot;: &quot;A String&quot;, # Output only. The execution status.
257 },
258 ],
259 &quot;runType&quot;: &quot;A String&quot;, # Type which represents whether the execution executed directly by user or scheduled according to the `Evaluation.schedule` field.
260 &quot;startTime&quot;: &quot;A String&quot;, # Output only. [Output only] Start time stamp.
261 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] State.
262 },
263 ],
264 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
265 &quot;unreachable&quot;: [ # Locations that could not be reached.
266 &quot;A String&quot;,
267 ],
268 }</pre>
269 </div>
270
271 <div class="method">
272 <code class="details" id="list_next">list_next()</code>
273 <pre>Retrieves the next page of results.
274
275 Args:
276 previous_request: The request for the previous page. (required)
277 previous_response: The response from the request for the previous page. (required)
278
279 Returns:
280 A request object that you can call &#x27;execute()&#x27; on to request the next
281 page. Returns None if there are no more items in the collection.
282 </pre>
283 </div>
284
285 <div class="method">
286 <code class="details" id="run">run(name, body=None, x__xgafv=None)</code>
287 <pre>Creates a new Execution in a given project and location.
288
289 Args:
290 name: string, Required. The resource name of the Evaluation using the form: `projects/{project}/locations/{location}/evaluations/{evaluation}`. (required)
291 body: object, The request body.
292 The object takes the form of:
293
294 { # Request message for the RunEvaluation RPC.
295 &quot;execution&quot;: { # Execution that represents a single run of an Evaluation. # Required. The resource being created.
296 &quot;endTime&quot;: &quot;A String&quot;, # Output only. [Output only] End time stamp.
297 &quot;engine&quot;: &quot;A String&quot;, # Optional. Engine.
298 &quot;evaluationId&quot;: &quot;A String&quot;, # Output only. [Output only] Evaluation ID.
299 &quot;externalDataSources&quot;: [ # Optional. External data sources.
300 { # External data sources for an execution.
301 &quot;assetType&quot;: &quot;A String&quot;, # Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user.
302 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data.
303 &quot;type&quot;: &quot;A String&quot;, # Required. Type of external data source.
304 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID}.
305 },
306 ],
307 &quot;inventoryTime&quot;: &quot;A String&quot;, # Output only. [Output only] Inventory time stamp.
308 &quot;labels&quot;: { # Labels as key value pairs.
309 &quot;a_key&quot;: &quot;A String&quot;,
310 },
311 &quot;name&quot;: &quot;A String&quot;, # The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
312 &quot;notices&quot;: [ # Output only. Additional information generated by the execution.
313 { # Additional information generated by an execution.
314 &quot;message&quot;: &quot;A String&quot;, # Output only. Message of the notice.
315 },
316 ],
317 &quot;resultSummary&quot;: { # Execution summary. # Output only. [Output only] Result summary for the execution.
318 &quot;failures&quot;: &quot;A String&quot;, # Output only. Number of failures.
319 &quot;newFailures&quot;: &quot;A String&quot;, # Output only. Number of new failures compared to the previous execution.
320 &quot;newFixes&quot;: &quot;A String&quot;, # Output only. Number of new fixes compared to the previous execution.
321 },
322 &quot;ruleResults&quot;: [ # Output only. Execution result summary per rule.
323 { # Execution result summary per rule.
324 &quot;message&quot;: &quot;A String&quot;, # Execution message, if any.
325 &quot;resultCount&quot;: &quot;A String&quot;, # Number of violations.
326 &quot;rule&quot;: &quot;A String&quot;, # Rule name as plain text like `sap-hana-configured`.
327 &quot;scannedResourceCount&quot;: &quot;A String&quot;, # Number of total scanned resources.
328 &quot;state&quot;: &quot;A String&quot;, # Output only. The execution status.
329 },
330 ],
331 &quot;runType&quot;: &quot;A String&quot;, # Type which represents whether the execution executed directly by user or scheduled according to the `Evaluation.schedule` field.
332 &quot;startTime&quot;: &quot;A String&quot;, # Output only. [Output only] Start time stamp.
333 &quot;state&quot;: &quot;A String&quot;, # Output only. [Output only] State.
334 },
335 &quot;executionId&quot;: &quot;A String&quot;, # Required. ID of the execution which will be created.
336 &quot;requestId&quot;: &quot;A String&quot;, # Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
337 }
338
339 x__xgafv: string, V1 error format.
340 Allowed values
341 1 - v1 error format
342 2 - v2 error format
343
344 Returns:
345 An object of the form:
346
347 { # This resource represents a long-running operation that is the result of a network API call.
348 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
349 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
350 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
351 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
352 {
353 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
354 },
355 ],
356 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
357 },
358 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
359 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
360 },
361 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
362 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
363 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
364 },
365 }</pre>
366 </div>
367
368 </body></html>