Debian Codegraph @

docs/dyn/checks_v1alpha.accounts.repos.scans.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="checks_v1alpha.html">Checks API</a> . <a href="checks_v1alpha.accounts.html">accounts</a> . <a href="checks_v1alpha.accounts.repos.html">repos</a> . <a href="checks_v1alpha.accounts.repos.scans.html">scans</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="#generate">generate(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Uploads the results of local Code Compliance analysis and generates a scan of privacy issues. Returns a google.longrunning.Operation containing analysis and findings.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Gets a repo scan. By default, only the name and results_uri fields are returned. You can include other fields by listing them in the `fields` URL query parameter. For example, `?fields=name,sources` will return the name and sources fields.</p>
86 <p class="toc_element">
87 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Lists repo scans for the specified repo.</p>
89 <p class="toc_element">
90 <code><a href="#list_next">list_next()</a></code></p>
91 <p class="firstline">Retrieves the next page of results.</p>
92 <h3>Method Details</h3>
93 <div class="method">
94 <code class="details" id="close">close()</code>
95 <pre>Close httplib2 connections.</pre>
96 </div>
97
98 <div class="method">
99 <code class="details" id="generate">generate(parent, body=None, x__xgafv=None)</code>
100 <pre>Uploads the results of local Code Compliance analysis and generates a scan of privacy issues. Returns a google.longrunning.Operation containing analysis and findings.
101
102 Args:
103 parent: string, Required. Resource name of the repo. Example: `accounts/123/repos/456` (required)
104 body: object, The request body.
105 The object takes the form of:
106
107 { # The request message for RepoScanService.GenerateScan.
108 &quot;cliAnalysis&quot;: { # The results of a Code Compliance CLI analysis. # Required. CLI analysis results.
109 &quot;codeScans&quot;: [ # Optional. Requested code scans resulting from preliminary CLI analysis.
110 { # A requested analysis of source code. Contains the source code and processing state.
111 &quot;dataTypeClassifications&quot;: [ # Optional. Data type classification requests.
112 { # A request to classify data types.
113 &quot;dataType&quot;: &quot;A String&quot;, # Required. Candidate data type.
114 &quot;lineNumber&quot;: 42, # Required. Line number (1-based).
115 },
116 ],
117 &quot;sourceCode&quot;: { # Contains source code from a repo. # Required. Source code to analyze.
118 &quot;code&quot;: &quot;A String&quot;, # Required. Source code.
119 &quot;endLine&quot;: 42, # Required. End line number (1-based).
120 &quot;path&quot;: &quot;A String&quot;, # Required. Path of the file.
121 &quot;startLine&quot;: 42, # Required. Start line number (1-based).
122 },
123 },
124 ],
125 &quot;sources&quot;: [ # Optional. Data sources detected in the scan.
126 { # Represents a data source finding.
127 &quot;codeAttribution&quot;: { # Source code attribution. # Optional. Source code attribution for the finding.
128 &quot;codeExcerpt&quot;: &quot;A String&quot;, # Optional. Code excerpt where the source was detected along with surrounding code.
129 &quot;lineNumber&quot;: 42, # Required. Line number (1-based).
130 &quot;path&quot;: &quot;A String&quot;, # Required. Path of the file.
131 &quot;startLineNumber&quot;: 42, # Optional. Start line number of the code excerpt (1-based).
132 },
133 &quot;dataType&quot;: &quot;A String&quot;, # Required. Data type.
134 &quot;falsePositive&quot;: True or False, # Optional. Whether the finding was marked as a false positive.
135 },
136 ],
137 },
138 &quot;cliVersion&quot;: &quot;A String&quot;, # Required. CLI version.
139 &quot;localScanPath&quot;: &quot;A String&quot;, # Required. Local scan path.
140 &quot;scmMetadata&quot;: { # SCM metadata. # Required. SCM metadata.
141 &quot;branch&quot;: &quot;A String&quot;, # Required. Branch name.
142 &quot;pullRequest&quot;: { # Pull request info. # Optional. Contains info about the associated pull request. This is only populated for pull request scans.
143 &quot;baseBranch&quot;: &quot;A String&quot;, # Required. For PR analysis, we compare against the most recent scan of the base branch to highlight new issues.
144 &quot;prNumber&quot;: &quot;A String&quot;, # Required. This can be supplied by the user or parsed automatically from predefined CI environment variables.
145 },
146 &quot;remoteUri&quot;: &quot;A String&quot;, # Required. Git remote URL.
147 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Revision ID, e.g. Git commit hash.
148 },
149 }
150
151 x__xgafv: string, V1 error format.
152 Allowed values
153 1 - v1 error format
154 2 - v2 error format
155
156 Returns:
157 An object of the form:
158
159 { # This resource represents a long-running operation that is the result of a network API call.
160 &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.
161 &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.
162 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
163 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
164 {
165 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
166 },
167 ],
168 &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.
169 },
170 &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.
171 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
172 },
173 &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}`.
174 &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`.
175 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
176 },
177 }</pre>
178 </div>
179
180 <div class="method">
181 <code class="details" id="get">get(name, x__xgafv=None)</code>
182 <pre>Gets a repo scan. By default, only the name and results_uri fields are returned. You can include other fields by listing them in the `fields` URL query parameter. For example, `?fields=name,sources` will return the name and sources fields.
183
184 Args:
185 name: string, Required. Resource name of the repo scan. Example: `accounts/123/repos/456/scans/789` (required)
186 x__xgafv: string, V1 error format.
187 Allowed values
188 1 - v1 error format
189 2 - v2 error format
190
191 Returns:
192 An object of the form:
193
194 { # Repo scan.
195 &quot;cliVersion&quot;: &quot;A String&quot;, # CLI version.
196 &quot;localScanPath&quot;: &quot;A String&quot;, # Local scan path.
197 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the scan.
198 &quot;resultsUri&quot;: &quot;A String&quot;, # A URL to view results.
199 &quot;scmMetadata&quot;: { # SCM metadata. # SCM metadata.
200 &quot;branch&quot;: &quot;A String&quot;, # Required. Branch name.
201 &quot;pullRequest&quot;: { # Pull request info. # Optional. Contains info about the associated pull request. This is only populated for pull request scans.
202 &quot;baseBranch&quot;: &quot;A String&quot;, # Required. For PR analysis, we compare against the most recent scan of the base branch to highlight new issues.
203 &quot;prNumber&quot;: &quot;A String&quot;, # Required. This can be supplied by the user or parsed automatically from predefined CI environment variables.
204 },
205 &quot;remoteUri&quot;: &quot;A String&quot;, # Required. Git remote URL.
206 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Revision ID, e.g. Git commit hash.
207 },
208 &quot;sources&quot;: [ # Data sources detected.
209 { # Represents a data source finding.
210 &quot;codeAttribution&quot;: { # Source code attribution. # Optional. Source code attribution for the finding.
211 &quot;codeExcerpt&quot;: &quot;A String&quot;, # Optional. Code excerpt where the source was detected along with surrounding code.
212 &quot;lineNumber&quot;: 42, # Required. Line number (1-based).
213 &quot;path&quot;: &quot;A String&quot;, # Required. Path of the file.
214 &quot;startLineNumber&quot;: 42, # Optional. Start line number of the code excerpt (1-based).
215 },
216 &quot;dataType&quot;: &quot;A String&quot;, # Required. Data type.
217 &quot;falsePositive&quot;: True or False, # Optional. Whether the finding was marked as a false positive.
218 },
219 ],
220 }</pre>
221 </div>
222
223 <div class="method">
224 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
225 <pre>Lists repo scans for the specified repo.
226
227 Args:
228 parent: string, Required. Resource name of the repo. Example: `accounts/123/repos/456` (required)
229 filter: string, Optional. An [AIP-160](https://google.aip.dev/160) filter string to filter repo scans. Example: `scmMetadata.branch = main`
230 pageSize: integer, Optional. The maximum number of repo scans to return. If unspecified, at most 10 repo scans will be returned. The maximum value is 50; values above 50 will be coerced to 50.
231 pageToken: string, Optional. A page token received from a previous `ListRepoScans` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepoScans` must match the call that provided the page token.
232 x__xgafv: string, V1 error format.
233 Allowed values
234 1 - v1 error format
235 2 - v2 error format
236
237 Returns:
238 An object of the form:
239
240 { # The response message for RepoScanService.ListRepoScans.
241 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
242 &quot;repoScans&quot;: [ # The repo scans for the specified app.
243 { # Repo scan.
244 &quot;cliVersion&quot;: &quot;A String&quot;, # CLI version.
245 &quot;localScanPath&quot;: &quot;A String&quot;, # Local scan path.
246 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the scan.
247 &quot;resultsUri&quot;: &quot;A String&quot;, # A URL to view results.
248 &quot;scmMetadata&quot;: { # SCM metadata. # SCM metadata.
249 &quot;branch&quot;: &quot;A String&quot;, # Required. Branch name.
250 &quot;pullRequest&quot;: { # Pull request info. # Optional. Contains info about the associated pull request. This is only populated for pull request scans.
251 &quot;baseBranch&quot;: &quot;A String&quot;, # Required. For PR analysis, we compare against the most recent scan of the base branch to highlight new issues.
252 &quot;prNumber&quot;: &quot;A String&quot;, # Required. This can be supplied by the user or parsed automatically from predefined CI environment variables.
253 },
254 &quot;remoteUri&quot;: &quot;A String&quot;, # Required. Git remote URL.
255 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Revision ID, e.g. Git commit hash.
256 },
257 &quot;sources&quot;: [ # Data sources detected.
258 { # Represents a data source finding.
259 &quot;codeAttribution&quot;: { # Source code attribution. # Optional. Source code attribution for the finding.
260 &quot;codeExcerpt&quot;: &quot;A String&quot;, # Optional. Code excerpt where the source was detected along with surrounding code.
261 &quot;lineNumber&quot;: 42, # Required. Line number (1-based).
262 &quot;path&quot;: &quot;A String&quot;, # Required. Path of the file.
263 &quot;startLineNumber&quot;: 42, # Optional. Start line number of the code excerpt (1-based).
264 },
265 &quot;dataType&quot;: &quot;A String&quot;, # Required. Data type.
266 &quot;falsePositive&quot;: True or False, # Optional. Whether the finding was marked as a false positive.
267 },
268 ],
269 },
270 ],
271 }</pre>
272 </div>
273
274 <div class="method">
275 <code class="details" id="list_next">list_next()</code>
276 <pre>Retrieves the next page of results.
277
278 Args:
279 previous_request: The request for the previous page. (required)
280 previous_response: The response from the request for the previous page. (required)
281
282 Returns:
283 A request object that you can call &#x27;execute()&#x27; on to request the next
284 page. Returns None if there are no more items in the collection.
285 </pre>
286 </div>
287
288 </body></html>