scan_run_warning_trace.proto 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.websecurityscanner.v1;
  16. option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "ScanRunWarningTraceProto";
  20. option java_package = "com.google.cloud.websecurityscanner.v1";
  21. option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
  22. option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
  23. // Output only.
  24. // Defines a warning trace message for ScanRun. Warning traces provide customers
  25. // with useful information that helps make the scanning process more effective.
  26. message ScanRunWarningTrace {
  27. // Output only.
  28. // Defines a warning message code.
  29. // Next id: 6
  30. enum Code {
  31. // Default value is never used.
  32. CODE_UNSPECIFIED = 0;
  33. // Indicates that a scan discovered an unexpectedly low number of URLs. This
  34. // is sometimes caused by complex navigation features or by using a single
  35. // URL for numerous pages.
  36. INSUFFICIENT_CRAWL_RESULTS = 1;
  37. // Indicates that a scan discovered too many URLs to test, or excessive
  38. // redundant URLs.
  39. TOO_MANY_CRAWL_RESULTS = 2;
  40. // Indicates that too many tests have been generated for the scan. Customer
  41. // should try reducing the number of starting URLs, increasing the QPS rate,
  42. // or narrowing down the scope of the scan using the excluded patterns.
  43. TOO_MANY_FUZZ_TASKS = 3;
  44. // Indicates that a scan is blocked by IAP.
  45. BLOCKED_BY_IAP = 4;
  46. // Indicates that no seeds is found for a scan
  47. NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5;
  48. }
  49. // Output only. Indicates the warning code.
  50. Code code = 1;
  51. }