bigquery_export.proto 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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.securitycenter.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "BigQueryExportProto";
  23. option java_package = "com.google.cloud.securitycenter.v1";
  24. option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
  25. option ruby_package = "Google::Cloud::SecurityCenter::V1";
  26. // Configures how to deliver Findings to BigQuery Instance.
  27. message BigQueryExport {
  28. option (google.api.resource) = {
  29. type: "securitycenter.googleapis.com/BigQueryExport"
  30. pattern: "organizations/{organization}/bigQueryExports/{export}"
  31. pattern: "folders/{folder}/bigQueryExports/{export}"
  32. pattern: "projects/{project}/bigQueryExports/{export}"
  33. };
  34. // The relative resource name of this export. See:
  35. // https://cloud.google.com/apis/design/resource_names#relative_resource_name.
  36. // Example format:
  37. // "organizations/{organization_id}/bigQueryExports/{export_id}" Example
  38. // format: "folders/{folder_id}/bigQueryExports/{export_id}" Example format:
  39. // "projects/{project_id}/bigQueryExports/{export_id}"
  40. // This field is provided in responses, and is ignored when provided in create
  41. // requests.
  42. string name = 1;
  43. // The description of the export (max of 1024 characters).
  44. string description = 2;
  45. // Expression that defines the filter to apply across create/update events
  46. // of findings. The expression is a list of zero or more restrictions combined
  47. // via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
  48. // has higher precedence than `AND`.
  49. //
  50. // Restrictions have the form `<field> <operator> <value>` and may have a
  51. // `-` character in front of them to indicate negation. The fields map to
  52. // those defined in the corresponding resource.
  53. //
  54. // The supported operators are:
  55. //
  56. // * `=` for all value types.
  57. // * `>`, `<`, `>=`, `<=` for integer values.
  58. // * `:`, meaning substring matching, for strings.
  59. //
  60. // The supported value types are:
  61. //
  62. // * string literals in quotes.
  63. // * integer literals without quotes.
  64. // * boolean literals `true` and `false` without quotes.
  65. string filter = 3;
  66. // The dataset to write findings' updates to. Its format is
  67. // "projects/[project_id]/datasets/[bigquery_dataset_id]".
  68. // BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers
  69. // (0-9), or underscores (_).
  70. string dataset = 4;
  71. // Output only. The time at which the big query export was created.
  72. // This field is set by the server and will be ignored if provided on export
  73. // on creation.
  74. google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  75. // Output only. The most recent time at which the big export was updated.
  76. // This field is set by the server and will be ignored if provided on export
  77. // creation or update.
  78. google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  79. // Output only. Email address of the user who last edited the big query export.
  80. // This field is set by the server and will be ignored if provided on export
  81. // creation or update.
  82. string most_recent_editor = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  83. // Output only. The service account that needs permission to create table, upload data to
  84. // the big query dataset.
  85. string principal = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  86. }