google-apis-checks_v1alpha 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4feaeb92e12fc2487aee656cddd1913399454523ba009955237e0ae1544acf3d
|
4
|
+
data.tar.gz: 3cc0718892125b3deb8335addf5d3e1c32ff99edd16573729bf1b79a5a785050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6575abbaf909d3b7b233c983cafb406e202579ba911e804848ac3ebb04df96bddcc8cc236da545d86d1f9c39cf84c219662c942b71f787cde12f120855f464d6
|
7
|
+
data.tar.gz: 9ef04488dfc2b273c43d172b30bac648a23bf8e3b021f3271e6d2ff691ba339021b39a549a18becc4649bb98670544e6bc49becbfc609a285b0a2d47b85b9c4b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-checks_v1alpha
|
2
2
|
|
3
|
+
### v0.13.0 (2024-12-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241124
|
6
|
+
|
7
|
+
### v0.12.0 (2024-11-03)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241029
|
10
|
+
|
3
11
|
### v0.11.0 (2024-09-08)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240904
|
@@ -102,6 +102,544 @@ module Google
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
+
# Request proto for ClassifyContent RPC.
|
106
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequest
|
107
|
+
include Google::Apis::Core::Hashable
|
108
|
+
|
109
|
+
# Optional. Version of the classifier to use. If not specified, the latest
|
110
|
+
# version will be used.
|
111
|
+
# Corresponds to the JSON property `classifierVersion`
|
112
|
+
# @return [String]
|
113
|
+
attr_accessor :classifier_version
|
114
|
+
|
115
|
+
# Context about the input that will be used to help on the classification.
|
116
|
+
# Corresponds to the JSON property `context`
|
117
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestContext]
|
118
|
+
attr_accessor :context
|
119
|
+
|
120
|
+
# Content to be classified.
|
121
|
+
# Corresponds to the JSON property `input`
|
122
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent]
|
123
|
+
attr_accessor :input
|
124
|
+
|
125
|
+
# Required. List of policies to classify against.
|
126
|
+
# Corresponds to the JSON property `policies`
|
127
|
+
# @return [Array<Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig>]
|
128
|
+
attr_accessor :policies
|
129
|
+
|
130
|
+
def initialize(**args)
|
131
|
+
update!(**args)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Update properties of this object
|
135
|
+
def update!(**args)
|
136
|
+
@classifier_version = args[:classifier_version] if args.key?(:classifier_version)
|
137
|
+
@context = args[:context] if args.key?(:context)
|
138
|
+
@input = args[:input] if args.key?(:input)
|
139
|
+
@policies = args[:policies] if args.key?(:policies)
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# Context about the input that will be used to help on the classification.
|
144
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequestContext
|
145
|
+
include Google::Apis::Core::Hashable
|
146
|
+
|
147
|
+
# Optional. Prompt that generated the model response.
|
148
|
+
# Corresponds to the JSON property `prompt`
|
149
|
+
# @return [String]
|
150
|
+
attr_accessor :prompt
|
151
|
+
|
152
|
+
def initialize(**args)
|
153
|
+
update!(**args)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Update properties of this object
|
157
|
+
def update!(**args)
|
158
|
+
@prompt = args[:prompt] if args.key?(:prompt)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Content to be classified.
|
163
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent
|
164
|
+
include Google::Apis::Core::Hashable
|
165
|
+
|
166
|
+
# Text input to be classified.
|
167
|
+
# Corresponds to the JSON property `textInput`
|
168
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaTextInput]
|
169
|
+
attr_accessor :text_input
|
170
|
+
|
171
|
+
def initialize(**args)
|
172
|
+
update!(**args)
|
173
|
+
end
|
174
|
+
|
175
|
+
# Update properties of this object
|
176
|
+
def update!(**args)
|
177
|
+
@text_input = args[:text_input] if args.key?(:text_input)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# List of policies to classify against.
|
182
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig
|
183
|
+
include Google::Apis::Core::Hashable
|
184
|
+
|
185
|
+
# Required. Type of the policy.
|
186
|
+
# Corresponds to the JSON property `policyType`
|
187
|
+
# @return [String]
|
188
|
+
attr_accessor :policy_type
|
189
|
+
|
190
|
+
# Optional. Score threshold to use when deciding if the content is violative or
|
191
|
+
# non-violative. If not specified, the default 0.5 threshold for the policy will
|
192
|
+
# be used.
|
193
|
+
# Corresponds to the JSON property `threshold`
|
194
|
+
# @return [Float]
|
195
|
+
attr_accessor :threshold
|
196
|
+
|
197
|
+
def initialize(**args)
|
198
|
+
update!(**args)
|
199
|
+
end
|
200
|
+
|
201
|
+
# Update properties of this object
|
202
|
+
def update!(**args)
|
203
|
+
@policy_type = args[:policy_type] if args.key?(:policy_type)
|
204
|
+
@threshold = args[:threshold] if args.key?(:threshold)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Response proto for ClassifyContent RPC.
|
209
|
+
class GoogleChecksAisafetyV1alphaClassifyContentResponse
|
210
|
+
include Google::Apis::Core::Hashable
|
211
|
+
|
212
|
+
# Results of the classification for each policy.
|
213
|
+
# Corresponds to the JSON property `policyResults`
|
214
|
+
# @return [Array<Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult>]
|
215
|
+
attr_accessor :policy_results
|
216
|
+
|
217
|
+
def initialize(**args)
|
218
|
+
update!(**args)
|
219
|
+
end
|
220
|
+
|
221
|
+
# Update properties of this object
|
222
|
+
def update!(**args)
|
223
|
+
@policy_results = args[:policy_results] if args.key?(:policy_results)
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
# Result for one policy against the corresponding input.
|
228
|
+
class GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult
|
229
|
+
include Google::Apis::Core::Hashable
|
230
|
+
|
231
|
+
# Type of the policy.
|
232
|
+
# Corresponds to the JSON property `policyType`
|
233
|
+
# @return [String]
|
234
|
+
attr_accessor :policy_type
|
235
|
+
|
236
|
+
# Final score for the results of this policy.
|
237
|
+
# Corresponds to the JSON property `score`
|
238
|
+
# @return [Float]
|
239
|
+
attr_accessor :score
|
240
|
+
|
241
|
+
# Result of the classification for the policy.
|
242
|
+
# Corresponds to the JSON property `violationResult`
|
243
|
+
# @return [String]
|
244
|
+
attr_accessor :violation_result
|
245
|
+
|
246
|
+
def initialize(**args)
|
247
|
+
update!(**args)
|
248
|
+
end
|
249
|
+
|
250
|
+
# Update properties of this object
|
251
|
+
def update!(**args)
|
252
|
+
@policy_type = args[:policy_type] if args.key?(:policy_type)
|
253
|
+
@score = args[:score] if args.key?(:score)
|
254
|
+
@violation_result = args[:violation_result] if args.key?(:violation_result)
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
# Text input to be classified.
|
259
|
+
class GoogleChecksAisafetyV1alphaTextInput
|
260
|
+
include Google::Apis::Core::Hashable
|
261
|
+
|
262
|
+
# Actual piece of text to be classified.
|
263
|
+
# Corresponds to the JSON property `content`
|
264
|
+
# @return [String]
|
265
|
+
attr_accessor :content
|
266
|
+
|
267
|
+
# Optional. Language of the text in ISO 639-1 format. If the language is invalid
|
268
|
+
# or not specified, the system will try to detect it.
|
269
|
+
# Corresponds to the JSON property `languageCode`
|
270
|
+
# @return [String]
|
271
|
+
attr_accessor :language_code
|
272
|
+
|
273
|
+
def initialize(**args)
|
274
|
+
update!(**args)
|
275
|
+
end
|
276
|
+
|
277
|
+
# Update properties of this object
|
278
|
+
def update!(**args)
|
279
|
+
@content = args[:content] if args.key?(:content)
|
280
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
284
|
+
# The results of a Code Compliance CLI analysis.
|
285
|
+
class GoogleChecksRepoScanV1alphaCliAnalysis
|
286
|
+
include Google::Apis::Core::Hashable
|
287
|
+
|
288
|
+
# Optional. Requested code scans resulting from preliminary CLI analysis.
|
289
|
+
# Corresponds to the JSON property `codeScans`
|
290
|
+
# @return [Array<Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeScan>]
|
291
|
+
attr_accessor :code_scans
|
292
|
+
|
293
|
+
# Optional. Data sources detected in the scan.
|
294
|
+
# Corresponds to the JSON property `sources`
|
295
|
+
# @return [Array<Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSource>]
|
296
|
+
attr_accessor :sources
|
297
|
+
|
298
|
+
def initialize(**args)
|
299
|
+
update!(**args)
|
300
|
+
end
|
301
|
+
|
302
|
+
# Update properties of this object
|
303
|
+
def update!(**args)
|
304
|
+
@code_scans = args[:code_scans] if args.key?(:code_scans)
|
305
|
+
@sources = args[:sources] if args.key?(:sources)
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
# Source code attribution.
|
310
|
+
class GoogleChecksRepoScanV1alphaCodeAttribution
|
311
|
+
include Google::Apis::Core::Hashable
|
312
|
+
|
313
|
+
# Optional. Code excerpt where the source was detected along with surrounding
|
314
|
+
# code.
|
315
|
+
# Corresponds to the JSON property `codeExcerpt`
|
316
|
+
# @return [String]
|
317
|
+
attr_accessor :code_excerpt
|
318
|
+
|
319
|
+
# Required. Line number (1-based).
|
320
|
+
# Corresponds to the JSON property `lineNumber`
|
321
|
+
# @return [Fixnum]
|
322
|
+
attr_accessor :line_number
|
323
|
+
|
324
|
+
# Required. Path of the file.
|
325
|
+
# Corresponds to the JSON property `path`
|
326
|
+
# @return [String]
|
327
|
+
attr_accessor :path
|
328
|
+
|
329
|
+
# Optional. Start line number of the code excerpt (1-based).
|
330
|
+
# Corresponds to the JSON property `startLineNumber`
|
331
|
+
# @return [Fixnum]
|
332
|
+
attr_accessor :start_line_number
|
333
|
+
|
334
|
+
def initialize(**args)
|
335
|
+
update!(**args)
|
336
|
+
end
|
337
|
+
|
338
|
+
# Update properties of this object
|
339
|
+
def update!(**args)
|
340
|
+
@code_excerpt = args[:code_excerpt] if args.key?(:code_excerpt)
|
341
|
+
@line_number = args[:line_number] if args.key?(:line_number)
|
342
|
+
@path = args[:path] if args.key?(:path)
|
343
|
+
@start_line_number = args[:start_line_number] if args.key?(:start_line_number)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
# A requested analysis of source code. Contains the source code and processing
|
348
|
+
# state.
|
349
|
+
class GoogleChecksRepoScanV1alphaCodeScan
|
350
|
+
include Google::Apis::Core::Hashable
|
351
|
+
|
352
|
+
# Optional. Data type classification requests.
|
353
|
+
# Corresponds to the JSON property `dataTypeClassifications`
|
354
|
+
# @return [Array<Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification>]
|
355
|
+
attr_accessor :data_type_classifications
|
356
|
+
|
357
|
+
# Contains source code from a repo.
|
358
|
+
# Corresponds to the JSON property `sourceCode`
|
359
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSourceCode]
|
360
|
+
attr_accessor :source_code
|
361
|
+
|
362
|
+
def initialize(**args)
|
363
|
+
update!(**args)
|
364
|
+
end
|
365
|
+
|
366
|
+
# Update properties of this object
|
367
|
+
def update!(**args)
|
368
|
+
@data_type_classifications = args[:data_type_classifications] if args.key?(:data_type_classifications)
|
369
|
+
@source_code = args[:source_code] if args.key?(:source_code)
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
373
|
+
# A request to classify data types.
|
374
|
+
class GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification
|
375
|
+
include Google::Apis::Core::Hashable
|
376
|
+
|
377
|
+
# Required. Candidate data type.
|
378
|
+
# Corresponds to the JSON property `dataType`
|
379
|
+
# @return [String]
|
380
|
+
attr_accessor :data_type
|
381
|
+
|
382
|
+
# Required. Line number (1-based).
|
383
|
+
# Corresponds to the JSON property `lineNumber`
|
384
|
+
# @return [Fixnum]
|
385
|
+
attr_accessor :line_number
|
386
|
+
|
387
|
+
def initialize(**args)
|
388
|
+
update!(**args)
|
389
|
+
end
|
390
|
+
|
391
|
+
# Update properties of this object
|
392
|
+
def update!(**args)
|
393
|
+
@data_type = args[:data_type] if args.key?(:data_type)
|
394
|
+
@line_number = args[:line_number] if args.key?(:line_number)
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
# The request message for RepoScanService.GenerateScan.
|
399
|
+
class GoogleChecksRepoScanV1alphaGenerateScanRequest
|
400
|
+
include Google::Apis::Core::Hashable
|
401
|
+
|
402
|
+
# The results of a Code Compliance CLI analysis.
|
403
|
+
# Corresponds to the JSON property `cliAnalysis`
|
404
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCliAnalysis]
|
405
|
+
attr_accessor :cli_analysis
|
406
|
+
|
407
|
+
# Required. CLI version.
|
408
|
+
# Corresponds to the JSON property `cliVersion`
|
409
|
+
# @return [String]
|
410
|
+
attr_accessor :cli_version
|
411
|
+
|
412
|
+
# Required. Local scan path.
|
413
|
+
# Corresponds to the JSON property `localScanPath`
|
414
|
+
# @return [String]
|
415
|
+
attr_accessor :local_scan_path
|
416
|
+
|
417
|
+
# SCM metadata.
|
418
|
+
# Corresponds to the JSON property `scmMetadata`
|
419
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaScmMetadata]
|
420
|
+
attr_accessor :scm_metadata
|
421
|
+
|
422
|
+
def initialize(**args)
|
423
|
+
update!(**args)
|
424
|
+
end
|
425
|
+
|
426
|
+
# Update properties of this object
|
427
|
+
def update!(**args)
|
428
|
+
@cli_analysis = args[:cli_analysis] if args.key?(:cli_analysis)
|
429
|
+
@cli_version = args[:cli_version] if args.key?(:cli_version)
|
430
|
+
@local_scan_path = args[:local_scan_path] if args.key?(:local_scan_path)
|
431
|
+
@scm_metadata = args[:scm_metadata] if args.key?(:scm_metadata)
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
# The response message for RepoScanService.ListRepoScans.
|
436
|
+
class GoogleChecksRepoScanV1alphaListRepoScansResponse
|
437
|
+
include Google::Apis::Core::Hashable
|
438
|
+
|
439
|
+
# A token which can be sent as `page_token` to retrieve the next page. If this
|
440
|
+
# field is omitted, there are no subsequent pages.
|
441
|
+
# Corresponds to the JSON property `nextPageToken`
|
442
|
+
# @return [String]
|
443
|
+
attr_accessor :next_page_token
|
444
|
+
|
445
|
+
# The repo scans for the specified app.
|
446
|
+
# Corresponds to the JSON property `repoScans`
|
447
|
+
# @return [Array<Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaRepoScan>]
|
448
|
+
attr_accessor :repo_scans
|
449
|
+
|
450
|
+
def initialize(**args)
|
451
|
+
update!(**args)
|
452
|
+
end
|
453
|
+
|
454
|
+
# Update properties of this object
|
455
|
+
def update!(**args)
|
456
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
457
|
+
@repo_scans = args[:repo_scans] if args.key?(:repo_scans)
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
461
|
+
# Pull request info.
|
462
|
+
class GoogleChecksRepoScanV1alphaPullRequest
|
463
|
+
include Google::Apis::Core::Hashable
|
464
|
+
|
465
|
+
# Required. For PR analysis, we compare against the most recent scan of the base
|
466
|
+
# branch to highlight new issues.
|
467
|
+
# Corresponds to the JSON property `baseBranch`
|
468
|
+
# @return [String]
|
469
|
+
attr_accessor :base_branch
|
470
|
+
|
471
|
+
# Required. This can be supplied by the user or parsed automatically from
|
472
|
+
# predefined CI environment variables.
|
473
|
+
# Corresponds to the JSON property `prNumber`
|
474
|
+
# @return [String]
|
475
|
+
attr_accessor :pr_number
|
476
|
+
|
477
|
+
def initialize(**args)
|
478
|
+
update!(**args)
|
479
|
+
end
|
480
|
+
|
481
|
+
# Update properties of this object
|
482
|
+
def update!(**args)
|
483
|
+
@base_branch = args[:base_branch] if args.key?(:base_branch)
|
484
|
+
@pr_number = args[:pr_number] if args.key?(:pr_number)
|
485
|
+
end
|
486
|
+
end
|
487
|
+
|
488
|
+
# Repo scan.
|
489
|
+
class GoogleChecksRepoScanV1alphaRepoScan
|
490
|
+
include Google::Apis::Core::Hashable
|
491
|
+
|
492
|
+
# CLI version.
|
493
|
+
# Corresponds to the JSON property `cliVersion`
|
494
|
+
# @return [String]
|
495
|
+
attr_accessor :cli_version
|
496
|
+
|
497
|
+
# Local scan path.
|
498
|
+
# Corresponds to the JSON property `localScanPath`
|
499
|
+
# @return [String]
|
500
|
+
attr_accessor :local_scan_path
|
501
|
+
|
502
|
+
# Identifier. Resource name of the scan.
|
503
|
+
# Corresponds to the JSON property `name`
|
504
|
+
# @return [String]
|
505
|
+
attr_accessor :name
|
506
|
+
|
507
|
+
# A URL to view results.
|
508
|
+
# Corresponds to the JSON property `resultsUri`
|
509
|
+
# @return [String]
|
510
|
+
attr_accessor :results_uri
|
511
|
+
|
512
|
+
# SCM metadata.
|
513
|
+
# Corresponds to the JSON property `scmMetadata`
|
514
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaScmMetadata]
|
515
|
+
attr_accessor :scm_metadata
|
516
|
+
|
517
|
+
# Data sources detected.
|
518
|
+
# Corresponds to the JSON property `sources`
|
519
|
+
# @return [Array<Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSource>]
|
520
|
+
attr_accessor :sources
|
521
|
+
|
522
|
+
def initialize(**args)
|
523
|
+
update!(**args)
|
524
|
+
end
|
525
|
+
|
526
|
+
# Update properties of this object
|
527
|
+
def update!(**args)
|
528
|
+
@cli_version = args[:cli_version] if args.key?(:cli_version)
|
529
|
+
@local_scan_path = args[:local_scan_path] if args.key?(:local_scan_path)
|
530
|
+
@name = args[:name] if args.key?(:name)
|
531
|
+
@results_uri = args[:results_uri] if args.key?(:results_uri)
|
532
|
+
@scm_metadata = args[:scm_metadata] if args.key?(:scm_metadata)
|
533
|
+
@sources = args[:sources] if args.key?(:sources)
|
534
|
+
end
|
535
|
+
end
|
536
|
+
|
537
|
+
# SCM metadata.
|
538
|
+
class GoogleChecksRepoScanV1alphaScmMetadata
|
539
|
+
include Google::Apis::Core::Hashable
|
540
|
+
|
541
|
+
# Required. Branch name.
|
542
|
+
# Corresponds to the JSON property `branch`
|
543
|
+
# @return [String]
|
544
|
+
attr_accessor :branch
|
545
|
+
|
546
|
+
# Pull request info.
|
547
|
+
# Corresponds to the JSON property `pullRequest`
|
548
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaPullRequest]
|
549
|
+
attr_accessor :pull_request
|
550
|
+
|
551
|
+
# Required. Git remote URL.
|
552
|
+
# Corresponds to the JSON property `remoteUri`
|
553
|
+
# @return [String]
|
554
|
+
attr_accessor :remote_uri
|
555
|
+
|
556
|
+
# Required. Revision ID, e.g. Git commit hash.
|
557
|
+
# Corresponds to the JSON property `revisionId`
|
558
|
+
# @return [String]
|
559
|
+
attr_accessor :revision_id
|
560
|
+
|
561
|
+
def initialize(**args)
|
562
|
+
update!(**args)
|
563
|
+
end
|
564
|
+
|
565
|
+
# Update properties of this object
|
566
|
+
def update!(**args)
|
567
|
+
@branch = args[:branch] if args.key?(:branch)
|
568
|
+
@pull_request = args[:pull_request] if args.key?(:pull_request)
|
569
|
+
@remote_uri = args[:remote_uri] if args.key?(:remote_uri)
|
570
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
571
|
+
end
|
572
|
+
end
|
573
|
+
|
574
|
+
# Represents a data source finding.
|
575
|
+
class GoogleChecksRepoScanV1alphaSource
|
576
|
+
include Google::Apis::Core::Hashable
|
577
|
+
|
578
|
+
# Source code attribution.
|
579
|
+
# Corresponds to the JSON property `codeAttribution`
|
580
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeAttribution]
|
581
|
+
attr_accessor :code_attribution
|
582
|
+
|
583
|
+
# Required. Data type.
|
584
|
+
# Corresponds to the JSON property `dataType`
|
585
|
+
# @return [String]
|
586
|
+
attr_accessor :data_type
|
587
|
+
|
588
|
+
# Optional. Whether the finding was marked as a false positive.
|
589
|
+
# Corresponds to the JSON property `falsePositive`
|
590
|
+
# @return [Boolean]
|
591
|
+
attr_accessor :false_positive
|
592
|
+
alias_method :false_positive?, :false_positive
|
593
|
+
|
594
|
+
def initialize(**args)
|
595
|
+
update!(**args)
|
596
|
+
end
|
597
|
+
|
598
|
+
# Update properties of this object
|
599
|
+
def update!(**args)
|
600
|
+
@code_attribution = args[:code_attribution] if args.key?(:code_attribution)
|
601
|
+
@data_type = args[:data_type] if args.key?(:data_type)
|
602
|
+
@false_positive = args[:false_positive] if args.key?(:false_positive)
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
606
|
+
# Contains source code from a repo.
|
607
|
+
class GoogleChecksRepoScanV1alphaSourceCode
|
608
|
+
include Google::Apis::Core::Hashable
|
609
|
+
|
610
|
+
# Required. Source code.
|
611
|
+
# Corresponds to the JSON property `code`
|
612
|
+
# @return [String]
|
613
|
+
attr_accessor :code
|
614
|
+
|
615
|
+
# Required. End line number (1-based).
|
616
|
+
# Corresponds to the JSON property `endLine`
|
617
|
+
# @return [Fixnum]
|
618
|
+
attr_accessor :end_line
|
619
|
+
|
620
|
+
# Required. Path of the file.
|
621
|
+
# Corresponds to the JSON property `path`
|
622
|
+
# @return [String]
|
623
|
+
attr_accessor :path
|
624
|
+
|
625
|
+
# Required. Start line number (1-based).
|
626
|
+
# Corresponds to the JSON property `startLine`
|
627
|
+
# @return [Fixnum]
|
628
|
+
attr_accessor :start_line
|
629
|
+
|
630
|
+
def initialize(**args)
|
631
|
+
update!(**args)
|
632
|
+
end
|
633
|
+
|
634
|
+
# Update properties of this object
|
635
|
+
def update!(**args)
|
636
|
+
@code = args[:code] if args.key?(:code)
|
637
|
+
@end_line = args[:end_line] if args.key?(:end_line)
|
638
|
+
@path = args[:path] if args.key?(:path)
|
639
|
+
@start_line = args[:start_line] if args.key?(:start_line)
|
640
|
+
end
|
641
|
+
end
|
642
|
+
|
105
643
|
# The request message for ReportService.AnalyzeUpload.
|
106
644
|
class GoogleChecksReportV1alphaAnalyzeUploadRequest
|
107
645
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ChecksV1alpha
|
18
18
|
# Version of the google-apis-checks_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241124"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,114 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequestContext
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class GoogleChecksAisafetyV1alphaClassifyContentResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class GoogleChecksAisafetyV1alphaTextInput
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class GoogleChecksRepoScanV1alphaCliAnalysis
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class GoogleChecksRepoScanV1alphaCodeAttribution
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class GoogleChecksRepoScanV1alphaCodeScan
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class GoogleChecksRepoScanV1alphaGenerateScanRequest
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class GoogleChecksRepoScanV1alphaListRepoScansResponse
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class GoogleChecksRepoScanV1alphaPullRequest
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class GoogleChecksRepoScanV1alphaRepoScan
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class GoogleChecksRepoScanV1alphaScmMetadata
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class GoogleChecksRepoScanV1alphaSource
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class GoogleChecksRepoScanV1alphaSourceCode
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
49
157
|
class GoogleChecksReportV1alphaAnalyzeUploadRequest
|
50
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
159
|
|
@@ -327,6 +435,179 @@ module Google
|
|
327
435
|
end
|
328
436
|
end
|
329
437
|
|
438
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequest
|
439
|
+
# @private
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
441
|
+
property :classifier_version, as: 'classifierVersion'
|
442
|
+
property :context, as: 'context', class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestContext, decorator: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestContext::Representation
|
443
|
+
|
444
|
+
property :input, as: 'input', class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent, decorator: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent::Representation
|
445
|
+
|
446
|
+
collection :policies, as: 'policies', class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig, decorator: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig::Representation
|
447
|
+
|
448
|
+
end
|
449
|
+
end
|
450
|
+
|
451
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequestContext
|
452
|
+
# @private
|
453
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
454
|
+
property :prompt, as: 'prompt'
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent
|
459
|
+
# @private
|
460
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
461
|
+
property :text_input, as: 'textInput', class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaTextInput, decorator: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaTextInput::Representation
|
462
|
+
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
class GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig
|
467
|
+
# @private
|
468
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
469
|
+
property :policy_type, as: 'policyType'
|
470
|
+
property :threshold, as: 'threshold'
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
class GoogleChecksAisafetyV1alphaClassifyContentResponse
|
475
|
+
# @private
|
476
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
477
|
+
collection :policy_results, as: 'policyResults', class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult, decorator: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult::Representation
|
478
|
+
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
482
|
+
class GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult
|
483
|
+
# @private
|
484
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
485
|
+
property :policy_type, as: 'policyType'
|
486
|
+
property :score, as: 'score'
|
487
|
+
property :violation_result, as: 'violationResult'
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
491
|
+
class GoogleChecksAisafetyV1alphaTextInput
|
492
|
+
# @private
|
493
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
494
|
+
property :content, as: 'content'
|
495
|
+
property :language_code, as: 'languageCode'
|
496
|
+
end
|
497
|
+
end
|
498
|
+
|
499
|
+
class GoogleChecksRepoScanV1alphaCliAnalysis
|
500
|
+
# @private
|
501
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
502
|
+
collection :code_scans, as: 'codeScans', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeScan, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeScan::Representation
|
503
|
+
|
504
|
+
collection :sources, as: 'sources', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSource, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSource::Representation
|
505
|
+
|
506
|
+
end
|
507
|
+
end
|
508
|
+
|
509
|
+
class GoogleChecksRepoScanV1alphaCodeAttribution
|
510
|
+
# @private
|
511
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
512
|
+
property :code_excerpt, as: 'codeExcerpt'
|
513
|
+
property :line_number, as: 'lineNumber'
|
514
|
+
property :path, as: 'path'
|
515
|
+
property :start_line_number, as: 'startLineNumber'
|
516
|
+
end
|
517
|
+
end
|
518
|
+
|
519
|
+
class GoogleChecksRepoScanV1alphaCodeScan
|
520
|
+
# @private
|
521
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
522
|
+
collection :data_type_classifications, as: 'dataTypeClassifications', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification::Representation
|
523
|
+
|
524
|
+
property :source_code, as: 'sourceCode', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSourceCode, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSourceCode::Representation
|
525
|
+
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
class GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification
|
530
|
+
# @private
|
531
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
532
|
+
property :data_type, as: 'dataType'
|
533
|
+
property :line_number, as: 'lineNumber'
|
534
|
+
end
|
535
|
+
end
|
536
|
+
|
537
|
+
class GoogleChecksRepoScanV1alphaGenerateScanRequest
|
538
|
+
# @private
|
539
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
540
|
+
property :cli_analysis, as: 'cliAnalysis', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCliAnalysis, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCliAnalysis::Representation
|
541
|
+
|
542
|
+
property :cli_version, as: 'cliVersion'
|
543
|
+
property :local_scan_path, as: 'localScanPath'
|
544
|
+
property :scm_metadata, as: 'scmMetadata', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaScmMetadata, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaScmMetadata::Representation
|
545
|
+
|
546
|
+
end
|
547
|
+
end
|
548
|
+
|
549
|
+
class GoogleChecksRepoScanV1alphaListRepoScansResponse
|
550
|
+
# @private
|
551
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
552
|
+
property :next_page_token, as: 'nextPageToken'
|
553
|
+
collection :repo_scans, as: 'repoScans', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaRepoScan, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaRepoScan::Representation
|
554
|
+
|
555
|
+
end
|
556
|
+
end
|
557
|
+
|
558
|
+
class GoogleChecksRepoScanV1alphaPullRequest
|
559
|
+
# @private
|
560
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
561
|
+
property :base_branch, as: 'baseBranch'
|
562
|
+
property :pr_number, as: 'prNumber'
|
563
|
+
end
|
564
|
+
end
|
565
|
+
|
566
|
+
class GoogleChecksRepoScanV1alphaRepoScan
|
567
|
+
# @private
|
568
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
569
|
+
property :cli_version, as: 'cliVersion'
|
570
|
+
property :local_scan_path, as: 'localScanPath'
|
571
|
+
property :name, as: 'name'
|
572
|
+
property :results_uri, as: 'resultsUri'
|
573
|
+
property :scm_metadata, as: 'scmMetadata', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaScmMetadata, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaScmMetadata::Representation
|
574
|
+
|
575
|
+
collection :sources, as: 'sources', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSource, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSource::Representation
|
576
|
+
|
577
|
+
end
|
578
|
+
end
|
579
|
+
|
580
|
+
class GoogleChecksRepoScanV1alphaScmMetadata
|
581
|
+
# @private
|
582
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
583
|
+
property :branch, as: 'branch'
|
584
|
+
property :pull_request, as: 'pullRequest', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaPullRequest, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaPullRequest::Representation
|
585
|
+
|
586
|
+
property :remote_uri, as: 'remoteUri'
|
587
|
+
property :revision_id, as: 'revisionId'
|
588
|
+
end
|
589
|
+
end
|
590
|
+
|
591
|
+
class GoogleChecksRepoScanV1alphaSource
|
592
|
+
# @private
|
593
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
594
|
+
property :code_attribution, as: 'codeAttribution', class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeAttribution, decorator: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeAttribution::Representation
|
595
|
+
|
596
|
+
property :data_type, as: 'dataType'
|
597
|
+
property :false_positive, as: 'falsePositive'
|
598
|
+
end
|
599
|
+
end
|
600
|
+
|
601
|
+
class GoogleChecksRepoScanV1alphaSourceCode
|
602
|
+
# @private
|
603
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
604
|
+
property :code, as: 'code'
|
605
|
+
property :end_line, as: 'endLine'
|
606
|
+
property :path, as: 'path'
|
607
|
+
property :start_line, as: 'startLine'
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
330
611
|
class GoogleChecksReportV1alphaAnalyzeUploadRequest
|
331
612
|
# @private
|
332
613
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -127,8 +127,8 @@ module Google
|
|
127
127
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
128
128
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
129
129
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
130
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
131
|
-
# corresponding to `Code.CANCELLED`.
|
130
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
131
|
+
# , corresponding to `Code.CANCELLED`.
|
132
132
|
# @param [String] name
|
133
133
|
# The name of the operation resource to be cancelled.
|
134
134
|
# @param [Google::Apis::ChecksV1alpha::CancelOperationRequest] cancel_operation_request_object
|
@@ -427,6 +427,149 @@ module Google
|
|
427
427
|
execute_or_queue_command(command, &block)
|
428
428
|
end
|
429
429
|
|
430
|
+
# Uploads the results of local Code Compliance analysis and generates a scan of
|
431
|
+
# privacy issues. Returns a google.longrunning.Operation containing analysis and
|
432
|
+
# findings.
|
433
|
+
# @param [String] parent
|
434
|
+
# Required. Resource name of the repo. Example: `accounts/123/repos/456`
|
435
|
+
# @param [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaGenerateScanRequest] google_checks_repo_scan_v1alpha_generate_scan_request_object
|
436
|
+
# @param [String] fields
|
437
|
+
# Selector specifying which fields to include in a partial response.
|
438
|
+
# @param [String] quota_user
|
439
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
440
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
441
|
+
# @param [Google::Apis::RequestOptions] options
|
442
|
+
# Request-specific options
|
443
|
+
#
|
444
|
+
# @yield [result, err] Result & error if block supplied
|
445
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::Operation] parsed result object
|
446
|
+
# @yieldparam err [StandardError] error object if request failed
|
447
|
+
#
|
448
|
+
# @return [Google::Apis::ChecksV1alpha::Operation]
|
449
|
+
#
|
450
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
451
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
452
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
453
|
+
def generate_account_repo_scan(parent, google_checks_repo_scan_v1alpha_generate_scan_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
454
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/scans:generate', options)
|
455
|
+
command.request_representation = Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaGenerateScanRequest::Representation
|
456
|
+
command.request_object = google_checks_repo_scan_v1alpha_generate_scan_request_object
|
457
|
+
command.response_representation = Google::Apis::ChecksV1alpha::Operation::Representation
|
458
|
+
command.response_class = Google::Apis::ChecksV1alpha::Operation
|
459
|
+
command.params['parent'] = parent unless parent.nil?
|
460
|
+
command.query['fields'] = fields unless fields.nil?
|
461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
462
|
+
execute_or_queue_command(command, &block)
|
463
|
+
end
|
464
|
+
|
465
|
+
# Gets a repo scan. By default, only the name and results_uri fields are
|
466
|
+
# returned. You can include other fields by listing them in the `fields` URL
|
467
|
+
# query parameter. For example, `?fields=name,sources` will return the name and
|
468
|
+
# sources fields.
|
469
|
+
# @param [String] name
|
470
|
+
# Required. Resource name of the repo scan. Example: `accounts/123/repos/456/
|
471
|
+
# scans/789`
|
472
|
+
# @param [String] fields
|
473
|
+
# Selector specifying which fields to include in a partial response.
|
474
|
+
# @param [String] quota_user
|
475
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
476
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
477
|
+
# @param [Google::Apis::RequestOptions] options
|
478
|
+
# Request-specific options
|
479
|
+
#
|
480
|
+
# @yield [result, err] Result & error if block supplied
|
481
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaRepoScan] parsed result object
|
482
|
+
# @yieldparam err [StandardError] error object if request failed
|
483
|
+
#
|
484
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaRepoScan]
|
485
|
+
#
|
486
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
487
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
488
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
489
|
+
def get_account_repo_scan(name, fields: nil, quota_user: nil, options: nil, &block)
|
490
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
491
|
+
command.response_representation = Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaRepoScan::Representation
|
492
|
+
command.response_class = Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaRepoScan
|
493
|
+
command.params['name'] = name unless name.nil?
|
494
|
+
command.query['fields'] = fields unless fields.nil?
|
495
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
496
|
+
execute_or_queue_command(command, &block)
|
497
|
+
end
|
498
|
+
|
499
|
+
# Lists repo scans for the specified repo.
|
500
|
+
# @param [String] parent
|
501
|
+
# Required. Resource name of the repo. Example: `accounts/123/repos/456`
|
502
|
+
# @param [String] filter
|
503
|
+
# Optional. An [AIP-160](https://google.aip.dev/160) filter string to filter
|
504
|
+
# repo scans. Example: `scmMetadata.branch = main`
|
505
|
+
# @param [Fixnum] page_size
|
506
|
+
# Optional. The maximum number of repo scans to return. If unspecified, at most
|
507
|
+
# 10 repo scans will be returned. The maximum value is 50; values above 50 will
|
508
|
+
# be coerced to 50.
|
509
|
+
# @param [String] page_token
|
510
|
+
# Optional. A page token received from a previous `ListRepoScans` call. Provide
|
511
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
512
|
+
# provided to `ListRepoScans` must match the call that provided the page token.
|
513
|
+
# @param [String] fields
|
514
|
+
# Selector specifying which fields to include in a partial response.
|
515
|
+
# @param [String] quota_user
|
516
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
517
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
518
|
+
# @param [Google::Apis::RequestOptions] options
|
519
|
+
# Request-specific options
|
520
|
+
#
|
521
|
+
# @yield [result, err] Result & error if block supplied
|
522
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaListRepoScansResponse] parsed result object
|
523
|
+
# @yieldparam err [StandardError] error object if request failed
|
524
|
+
#
|
525
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaListRepoScansResponse]
|
526
|
+
#
|
527
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
528
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
529
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
530
|
+
def list_account_repo_scans(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
531
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/scans', options)
|
532
|
+
command.response_representation = Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaListRepoScansResponse::Representation
|
533
|
+
command.response_class = Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaListRepoScansResponse
|
534
|
+
command.params['parent'] = parent unless parent.nil?
|
535
|
+
command.query['filter'] = filter unless filter.nil?
|
536
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
537
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
538
|
+
command.query['fields'] = fields unless fields.nil?
|
539
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
540
|
+
execute_or_queue_command(command, &block)
|
541
|
+
end
|
542
|
+
|
543
|
+
# Analyze a piece of content with the provided set of policies.
|
544
|
+
# @param [Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequest] google_checks_aisafety_v1alpha_classify_content_request_object
|
545
|
+
# @param [String] fields
|
546
|
+
# Selector specifying which fields to include in a partial response.
|
547
|
+
# @param [String] quota_user
|
548
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
549
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
550
|
+
# @param [Google::Apis::RequestOptions] options
|
551
|
+
# Request-specific options
|
552
|
+
#
|
553
|
+
# @yield [result, err] Result & error if block supplied
|
554
|
+
# @yieldparam result [Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentResponse] parsed result object
|
555
|
+
# @yieldparam err [StandardError] error object if request failed
|
556
|
+
#
|
557
|
+
# @return [Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentResponse]
|
558
|
+
#
|
559
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
560
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
561
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
562
|
+
def classify_aisafety_content(google_checks_aisafety_v1alpha_classify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
563
|
+
command = make_simple_command(:post, 'v1alpha/aisafety:classifyContent', options)
|
564
|
+
command.request_representation = Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequest::Representation
|
565
|
+
command.request_object = google_checks_aisafety_v1alpha_classify_content_request_object
|
566
|
+
command.response_representation = Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentResponse::Representation
|
567
|
+
command.response_class = Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentResponse
|
568
|
+
command.query['fields'] = fields unless fields.nil?
|
569
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
570
|
+
execute_or_queue_command(command, &block)
|
571
|
+
end
|
572
|
+
|
430
573
|
# Analyzes the uploaded app bundle and returns a google.longrunning.Operation
|
431
574
|
# containing the generated Report. ## Example (upload only) Send a regular POST
|
432
575
|
# request with the header `X-Goog-Upload-Protocol: raw`. ``` POST https://checks.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-checks_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-checks_v1alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-checks_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-checks_v1alpha/v0.13.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-checks_v1alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.22
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Checks API V1alpha
|