google-apis-checks_v1alpha 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eaa5f3394d18f6716a954f4ca0c38b3ff8a26288ea43ae0b5abdbd90b71df7cc
4
- data.tar.gz: cb8fcf93f4fbb64044d042e46c8bb3c03377e4adbbae19d550c2fa5a8f94b2d3
3
+ metadata.gz: 4feaeb92e12fc2487aee656cddd1913399454523ba009955237e0ae1544acf3d
4
+ data.tar.gz: 3cc0718892125b3deb8335addf5d3e1c32ff99edd16573729bf1b79a5a785050
5
5
  SHA512:
6
- metadata.gz: d1fbed43d14a80a761251647fc4252554ca5eef3c723f86e94b6f5a8571de25e140d7c1cfa91af74835fbb468672f0b24a02f86320f88dd22cbe26f4962e6ea8
7
- data.tar.gz: af148faba187020efade62c80aecc20424a806cf18b26df498f01d05cb92bb7e98466588e0b18c1b5ff4762f46ac244de1d3a23afa63dd07b9f94fd167f20041
6
+ metadata.gz: 6575abbaf909d3b7b233c983cafb406e202579ba911e804848ac3ebb04df96bddcc8cc236da545d86d1f9c39cf84c219662c942b71f787cde12f120855f464d6
7
+ data.tar.gz: 9ef04488dfc2b273c43d172b30bac648a23bf8e3b021f3271e6d2ff691ba339021b39a549a18becc4649bb98670544e6bc49becbfc609a285b0a2d47b85b9c4b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.12.0 (2024-11-03)
4
8
 
5
9
  * Regenerated from discovery document revision 20241029
@@ -281,6 +281,365 @@ module Google
281
281
  end
282
282
  end
283
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
+
284
643
  # The request message for ReportService.AnalyzeUpload.
285
644
  class GoogleChecksReportV1alphaAnalyzeUploadRequest
286
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.12.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 = "20241029"
25
+ REVISION = "20241124"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,72 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
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
+
91
157
  class GoogleChecksReportV1alphaAnalyzeUploadRequest
92
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
159
 
@@ -430,6 +496,118 @@ module Google
430
496
  end
431
497
  end
432
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
+
433
611
  class GoogleChecksReportV1alphaAnalyzeUploadRequest
434
612
  # @private
435
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,119 @@ 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
+
430
543
  # Analyze a piece of content with the provided set of policies.
431
544
  # @param [Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequest] google_checks_aisafety_v1alpha_classify_content_request_object
432
545
  # @param [String] fields
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.12.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-03 00:00:00.000000000 Z
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.12.0
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.21
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