organization_settings.proto 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Copyright 2020 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.v1beta1;
  16. import "google/api/resource.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1;securitycenter";
  18. option java_multiple_files = true;
  19. option java_package = "com.google.cloud.securitycenter.v1beta1";
  20. // User specified settings that are attached to the Security Command
  21. // Center organization.
  22. message OrganizationSettings {
  23. option (google.api.resource) = {
  24. type: "securitycenter.googleapis.com/OrganizationSettings"
  25. pattern: "organizations/{organization}/organizationSettings"
  26. };
  27. // The configuration used for Asset Discovery runs.
  28. message AssetDiscoveryConfig {
  29. // The mode of inclusion when running Asset Discovery.
  30. // Asset discovery can be limited by explicitly identifying projects to be
  31. // included or excluded. If INCLUDE_ONLY is set, then only those projects
  32. // within the organization and their children are discovered during asset
  33. // discovery. If EXCLUDE is set, then projects that don't match those
  34. // projects are discovered during asset discovery. If neither are set, then
  35. // all projects within the organization are discovered during asset
  36. // discovery.
  37. enum InclusionMode {
  38. // Unspecified. Setting the mode with this value will disable
  39. // inclusion/exclusion filtering for Asset Discovery.
  40. INCLUSION_MODE_UNSPECIFIED = 0;
  41. // Asset Discovery will capture only the resources within the projects
  42. // specified. All other resources will be ignored.
  43. INCLUDE_ONLY = 1;
  44. // Asset Discovery will ignore all resources under the projects specified.
  45. // All other resources will be retrieved.
  46. EXCLUDE = 2;
  47. }
  48. // The project ids to use for filtering asset discovery.
  49. repeated string project_ids = 1;
  50. // The mode to use for filtering asset discovery.
  51. InclusionMode inclusion_mode = 2;
  52. }
  53. // The relative resource name of the settings. See:
  54. // https://cloud.google.com/apis/design/resource_names#relative_resource_name
  55. // Example:
  56. // "organizations/{organization_id}/organizationSettings".
  57. string name = 1;
  58. // A flag that indicates if Asset Discovery should be enabled. If the flag is
  59. // set to `true`, then discovery of assets will occur. If it is set to `false,
  60. // all historical assets will remain, but discovery of future assets will not
  61. // occur.
  62. bool enable_asset_discovery = 2;
  63. // The configuration used for Asset Discovery runs.
  64. AssetDiscoveryConfig asset_discovery_config = 3;
  65. }