google-cloud-security_center-v1p1beta1 0.4.2 → 0.7.2

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/LICENSE.md +188 -190
  4. data/README.md +67 -3
  5. data/lib/google/cloud/security_center/v1p1beta1/security_center/client.rb +66 -82
  6. data/lib/google/cloud/security_center/v1p1beta1/security_center/operations.rb +95 -10
  7. data/lib/google/cloud/security_center/v1p1beta1/security_center/paths.rb +175 -17
  8. data/lib/google/cloud/security_center/v1p1beta1/version.rb +1 -1
  9. data/lib/google/cloud/securitycenter/v1p1beta1/asset_pb.rb +4 -1
  10. data/lib/google/cloud/securitycenter/v1p1beta1/finding_pb.rb +2 -1
  11. data/lib/google/cloud/securitycenter/v1p1beta1/folder_pb.rb +24 -0
  12. data/lib/google/cloud/securitycenter/v1p1beta1/notification_config_pb.rb +1 -1
  13. data/lib/google/cloud/securitycenter/v1p1beta1/notification_message_pb.rb +1 -2
  14. data/lib/google/cloud/securitycenter/v1p1beta1/organization_settings_pb.rb +2 -1
  15. data/lib/google/cloud/securitycenter/v1p1beta1/resource_pb.rb +3 -0
  16. data/lib/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response_pb.rb +1 -1
  17. data/lib/google/cloud/securitycenter/v1p1beta1/security_marks_pb.rb +2 -1
  18. data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_pb.rb +2 -0
  19. data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_services_pb.rb +3 -1
  20. data/lib/google/cloud/securitycenter/v1p1beta1/source_pb.rb +2 -1
  21. data/proto_docs/google/api/field_behavior.rb +12 -0
  22. data/proto_docs/google/cloud/securitycenter/v1p1beta1/asset.rb +13 -2
  23. data/proto_docs/google/cloud/securitycenter/v1p1beta1/finding.rb +10 -1
  24. data/proto_docs/google/cloud/securitycenter/v1p1beta1/folder.rb +40 -0
  25. data/proto_docs/google/cloud/securitycenter/v1p1beta1/organization_settings.rb +4 -0
  26. data/proto_docs/google/cloud/securitycenter/v1p1beta1/resource.rb +5 -0
  27. data/proto_docs/google/cloud/securitycenter/v1p1beta1/security_marks.rb +10 -0
  28. data/proto_docs/google/cloud/securitycenter/v1p1beta1/securitycenter_service.rb +23 -9
  29. data/proto_docs/google/cloud/securitycenter/v1p1beta1/source.rb +8 -0
  30. data/proto_docs/google/longrunning/operations.rb +17 -3
  31. data/proto_docs/google/protobuf/any.rb +5 -2
  32. data/proto_docs/google/protobuf/timestamp.rb +10 -1
  33. data/proto_docs/google/type/expr.rb +35 -12
  34. metadata +24 -13
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1p1beta1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.7.2"
25
25
  end
26
26
  end
27
27
  end
@@ -3,11 +3,12 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/resource_pb'
7
+ require 'google/cloud/securitycenter/v1p1beta1/folder_pb'
8
8
  require 'google/cloud/securitycenter/v1p1beta1/security_marks_pb'
9
9
  require 'google/protobuf/struct_pb'
10
10
  require 'google/protobuf/timestamp_pb'
11
+ require 'google/api/annotations_pb'
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/securitycenter/v1p1beta1/asset.proto", :syntax => :proto3) do
13
14
  add_message "google.cloud.securitycenter.v1p1beta1.Asset" do
@@ -18,6 +19,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
19
  optional :create_time, :message, 9, "google.protobuf.Timestamp"
19
20
  optional :update_time, :message, 10, "google.protobuf.Timestamp"
20
21
  optional :iam_policy, :message, 11, "google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy"
22
+ optional :canonical_name, :string, 13
21
23
  end
22
24
  add_message "google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties" do
23
25
  optional :resource_name, :string, 1
@@ -28,6 +30,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
30
  optional :resource_display_name, :string, 6
29
31
  optional :resource_parent_display_name, :string, 7
30
32
  optional :resource_project_display_name, :string, 8
33
+ repeated :folders, :message, 10, "google.cloud.securitycenter.v1p1beta1.Folder"
31
34
  end
32
35
  add_message "google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy" do
33
36
  optional :policy_blob, :string, 1
@@ -3,12 +3,12 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/field_behavior_pb'
8
7
  require 'google/api/resource_pb'
9
8
  require 'google/cloud/securitycenter/v1p1beta1/security_marks_pb'
10
9
  require 'google/protobuf/struct_pb'
11
10
  require 'google/protobuf/timestamp_pb'
11
+ require 'google/api/annotations_pb'
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/cloud/securitycenter/v1p1beta1/finding.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.securitycenter.v1p1beta1.Finding" do
@@ -23,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
23
  optional :event_time, :message, 9, "google.protobuf.Timestamp"
24
24
  optional :create_time, :message, 10, "google.protobuf.Timestamp"
25
25
  optional :severity, :enum, 13, "google.cloud.securitycenter.v1p1beta1.Finding.Severity"
26
+ optional :canonical_name, :string, 14
26
27
  end
27
28
  add_enum "google.cloud.securitycenter.v1p1beta1.Finding.State" do
28
29
  value :STATE_UNSPECIFIED, 0
@@ -0,0 +1,24 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1p1beta1/folder.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/securitycenter/v1p1beta1/folder.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.securitycenter.v1p1beta1.Folder" do
10
+ optional :resource_folder, :string, 1
11
+ optional :resource_folder_display_name, :string, 2
12
+ end
13
+ end
14
+ end
15
+
16
+ module Google
17
+ module Cloud
18
+ module SecurityCenter
19
+ module V1p1Beta1
20
+ Folder = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.Folder").msgclass
21
+ end
22
+ end
23
+ end
24
+ end
@@ -3,9 +3,9 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/field_behavior_pb'
8
7
  require 'google/api/resource_pb'
8
+ require 'google/api/annotations_pb'
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/securitycenter/v1p1beta1/notification_config.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.securitycenter.v1p1beta1.NotificationConfig" do
@@ -3,10 +3,9 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
- require 'google/cloud/securitycenter/v1p1beta1/asset_pb'
8
6
  require 'google/cloud/securitycenter/v1p1beta1/finding_pb'
9
7
  require 'google/cloud/securitycenter/v1p1beta1/resource_pb'
8
+ require 'google/api/annotations_pb'
10
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
10
  add_file("google/cloud/securitycenter/v1p1beta1/notification_message.proto", :syntax => :proto3) do
12
11
  add_message "google.cloud.securitycenter.v1p1beta1.NotificationMessage" do
@@ -3,8 +3,8 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/resource_pb'
7
+ require 'google/api/annotations_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/securitycenter/v1p1beta1/organization_settings.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.securitycenter.v1p1beta1.OrganizationSettings" do
@@ -15,6 +15,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_message "google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig" do
16
16
  repeated :project_ids, :string, 1
17
17
  optional :inclusion_mode, :enum, 2, "google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode"
18
+ repeated :folder_ids, :string, 3
18
19
  end
19
20
  add_enum "google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode" do
20
21
  value :INCLUSION_MODE_UNSPECIFIED, 0
@@ -3,6 +3,8 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/cloud/securitycenter/v1p1beta1/folder_pb'
6
8
  require 'google/api/annotations_pb'
7
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
10
  add_file("google/cloud/securitycenter/v1p1beta1/resource.proto", :syntax => :proto3) do
@@ -12,6 +14,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
14
  optional :project_display_name, :string, 3
13
15
  optional :parent, :string, 4
14
16
  optional :parent_display_name, :string, 5
17
+ repeated :folders, :message, 7, "google.cloud.securitycenter.v1p1beta1.Folder"
15
18
  end
16
19
  end
17
20
  end
@@ -3,8 +3,8 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/protobuf/duration_pb'
7
+ require 'google/api/annotations_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse" do
@@ -3,13 +3,14 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/resource_pb'
7
+ require 'google/api/annotations_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/securitycenter/v1p1beta1/security_marks.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.securitycenter.v1p1beta1.SecurityMarks" do
11
11
  optional :name, :string, 1
12
12
  map :marks, :string, :string, 2
13
+ optional :canonical_name, :string, 3
13
14
  end
14
15
  end
15
16
  end
@@ -11,6 +11,7 @@ require 'google/api/field_behavior_pb'
11
11
  require 'google/api/resource_pb'
12
12
  require 'google/cloud/securitycenter/v1p1beta1/asset_pb'
13
13
  require 'google/cloud/securitycenter/v1p1beta1/finding_pb'
14
+ require 'google/cloud/securitycenter/v1p1beta1/folder_pb'
14
15
  require 'google/cloud/securitycenter/v1p1beta1/notification_config_pb'
15
16
  require 'google/cloud/securitycenter/v1p1beta1/organization_settings_pb'
16
17
  require 'google/cloud/securitycenter/v1p1beta1/security_marks_pb'
@@ -156,6 +157,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
156
157
  optional :project_display_name, :string, 3
157
158
  optional :parent_name, :string, 4
158
159
  optional :parent_display_name, :string, 5
160
+ repeated :folders, :message, 10, "google.cloud.securitycenter.v1p1beta1.Folder"
159
161
  end
160
162
  add_enum "google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange" do
161
163
  value :UNUSED, 0
@@ -57,7 +57,9 @@ module Google
57
57
  # specified properties.
58
58
  #
59
59
  # To group across all sources provide a `-` as the source id.
60
- # Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
60
+ # Example: /v1/organizations/{organization_id}/sources/-/findings,
61
+ # /v1/folders/{folder_id}/sources/-/findings,
62
+ # /v1/projects/{project_id}/sources/-/findings
61
63
  rpc :GroupFindings, ::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsResponse
62
64
  # Lists an organization's assets.
63
65
  rpc :ListAssets, ::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse
@@ -3,14 +3,15 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/resource_pb'
7
+ require 'google/api/annotations_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/securitycenter/v1p1beta1/source.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.securitycenter.v1p1beta1.Source" do
11
11
  optional :name, :string, 1
12
12
  optional :display_name, :string, 2
13
13
  optional :description, :string, 3
14
+ optional :canonical_name, :string, 14
14
15
  end
15
16
  end
16
17
  end
@@ -54,6 +54,18 @@ module Google
54
54
  # This indicates that the field may be set once in a request to create a
55
55
  # resource, but may not be changed thereafter.
56
56
  IMMUTABLE = 5
57
+
58
+ # Denotes that a (repeated) field is an unordered list.
59
+ # This indicates that the service may provide the elements of the list
60
+ # in any arbitrary order, rather than the order the user originally
61
+ # provided. Additionally, the list's order may or may not be stable.
62
+ UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
57
69
  end
58
70
  end
59
71
  end
@@ -51,14 +51,20 @@ module Google
51
51
  # The time at which the asset was created in Security Command Center.
52
52
  # @!attribute [rw] update_time
53
53
  # @return [::Google::Protobuf::Timestamp]
54
- # The time at which the asset was last updated, added, or deleted in Cloud
55
- # SCC.
54
+ # The time at which the asset was last updated or added in Cloud SCC.
56
55
  # @!attribute [rw] iam_policy
57
56
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Asset::IamPolicy]
58
57
  # Cloud IAM Policy information associated with the Google Cloud resource
59
58
  # described by the Security Command Center asset. This information is managed
60
59
  # and defined by the Google Cloud resource and cannot be modified by the
61
60
  # user.
61
+ # @!attribute [rw] canonical_name
62
+ # @return [::String]
63
+ # The canonical name of the resource. It's either
64
+ # "organizations/\\{organization_id}/assets/\\{asset_id}",
65
+ # "folders/\\{folder_id}/assets/\\{asset_id}" or
66
+ # "projects/\\{project_number}/assets/\\{asset_id}", depending on the closest CRM
67
+ # ancestor of the resource.
62
68
  class Asset
63
69
  include ::Google::Protobuf::MessageExts
64
70
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -96,6 +102,11 @@ module Google
96
102
  # @!attribute [rw] resource_project_display_name
97
103
  # @return [::String]
98
104
  # The user defined display name for the project of this resource.
105
+ # @!attribute [rw] folders
106
+ # @return [::Array<::Google::Cloud::SecurityCenter::V1p1Beta1::Folder>]
107
+ # Contains a Folder message for each folder in the assets ancestry.
108
+ # The first folder is the deepest nested folder, and the last folder is the
109
+ # folder directly under the Organization.
99
110
  class SecurityCenterProperties
100
111
  include ::Google::Protobuf::MessageExts
101
112
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -78,7 +78,8 @@ module Google
78
78
  # occurred. For example, if the finding represents an open firewall it would
79
79
  # capture the time the detector believes the firewall became open. The
80
80
  # accuracy is determined by the detector. If the finding were to be resolved
81
- # afterward, this time would reflect when the finding was resolved.
81
+ # afterward, this time would reflect when the finding was resolved. Must not
82
+ # be set to a value greater than the current timestamp.
82
83
  # @!attribute [rw] create_time
83
84
  # @return [::Google::Protobuf::Timestamp]
84
85
  # The time at which the finding was created in Security Command Center.
@@ -86,6 +87,14 @@ module Google
86
87
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding::Severity]
87
88
  # The severity of the finding. This field is managed by the source that
88
89
  # writes the finding.
90
+ # @!attribute [rw] canonical_name
91
+ # @return [::String]
92
+ # The canonical name of the finding. It's either
93
+ # "organizations/\\{organization_id}/sources/\\{source_id}/findings/\\{finding_id}",
94
+ # "folders/\\{folder_id}/sources/\\{source_id}/findings/\\{finding_id}" or
95
+ # "projects/\\{project_number}/sources/\\{source_id}/findings/\\{finding_id}",
96
+ # depending on the closest CRM ancestor of the resource associated with the
97
+ # finding.
89
98
  class Finding
90
99
  include ::Google::Protobuf::MessageExts
91
100
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module SecurityCenter
23
+ module V1p1Beta1
24
+ # Message that contains the resource name and display name of a folder
25
+ # resource.
26
+ # @!attribute [rw] resource_folder
27
+ # @return [::String]
28
+ # Full resource name of this folder. See:
29
+ # https://cloud.google.com/apis/design/resource_names#full_resource_name
30
+ # @!attribute [rw] resource_folder_display_name
31
+ # @return [::String]
32
+ # The user defined display name for this folder.
33
+ class Folder
34
+ include ::Google::Protobuf::MessageExts
35
+ extend ::Google::Protobuf::MessageExts::ClassMethods
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -49,6 +49,10 @@ module Google
49
49
  # @!attribute [rw] inclusion_mode
50
50
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings::AssetDiscoveryConfig::InclusionMode]
51
51
  # The mode to use for filtering asset discovery.
52
+ # @!attribute [rw] folder_ids
53
+ # @return [::Array<::String>]
54
+ # The folder ids to use for filtering asset discovery.
55
+ # It consists of only digits, e.g., 756619654966.
52
56
  class AssetDiscoveryConfig
53
57
  include ::Google::Protobuf::MessageExts
54
58
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -38,6 +38,11 @@ module Google
38
38
  # @!attribute [rw] parent_display_name
39
39
  # @return [::String]
40
40
  # The human readable name of resource's parent.
41
+ # @!attribute [r] folders
42
+ # @return [::Array<::Google::Cloud::SecurityCenter::V1p1Beta1::Folder>]
43
+ # Output only. Contains a Folder message for each folder in the assets ancestry.
44
+ # The first folder is the deepest nested folder, and the last folder is the
45
+ # folder directly under the Organization.
41
46
  class Resource
42
47
  include ::Google::Protobuf::MessageExts
43
48
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -42,6 +42,16 @@ module Google
42
42
  # * Keys must be letters, numbers, underscores, or dashes
43
43
  # * Values have leading and trailing whitespace trimmed, remaining
44
44
  # characters must be between 1 - 4096 characters (inclusive)
45
+ # @!attribute [rw] canonical_name
46
+ # @return [::String]
47
+ # The canonical name of the marks.
48
+ # Examples:
49
+ # "organizations/\\{organization_id}/assets/\\{asset_id}/securityMarks"
50
+ # "folders/\\{folder_id}/assets/\\{asset_id}/securityMarks"
51
+ # "projects/\\{project_number}/assets/\\{asset_id}/securityMarks"
52
+ # "organizations/\\{organization_id}/sources/\\{source_id}/findings/\\{finding_id}/securityMarks"
53
+ # "folders/\\{folder_id}/sources/\\{source_id}/findings/\\{finding_id}/securityMarks"
54
+ # "projects/\\{project_number}/sources/\\{source_id}/findings/\\{finding_id}/securityMarks"
45
55
  class SecurityMarks
46
56
  include ::Google::Protobuf::MessageExts
47
57
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -115,7 +115,8 @@ module Google
115
115
  # @!attribute [rw] parent
116
116
  # @return [::String]
117
117
  # Required. Name of the organization to groupBy. Its format is
118
- # "organizations/[organization_id]".
118
+ # "organizations/[organization_id], folders/[folder_id], or
119
+ # projects/[project_id]".
119
120
  # @!attribute [rw] filter
120
121
  # @return [::String]
121
122
  # Expression that defines the filter to apply across assets.
@@ -274,9 +275,12 @@ module Google
274
275
  # @!attribute [rw] parent
275
276
  # @return [::String]
276
277
  # Required. Name of the source to groupBy. Its format is
277
- # "organizations/[organization_id]/sources/[source_id]". To groupBy across
278
- # all sources provide a source_id of `-`. For example:
279
- # organizations/\\{organization_id}/sources/-
278
+ # "organizations/[organization_id]/sources/[source_id]",
279
+ # folders/[folder_id]/sources/[source_id], or
280
+ # projects/[project_id]/sources/[source_id]. To groupBy across all sources
281
+ # provide a source_id of `-`. For example:
282
+ # organizations/\\{organization_id}/sources/-, folders/\\{folder_id}/sources/-,
283
+ # or projects/\\{project_id}/sources/-
280
284
  # @!attribute [rw] filter
281
285
  # @return [::String]
282
286
  # Expression that defines the filter to apply across findings.
@@ -478,7 +482,8 @@ module Google
478
482
  # @!attribute [rw] parent
479
483
  # @return [::String]
480
484
  # Required. Resource name of the parent of sources to list. Its format should be
481
- # "organizations/[organization_id]".
485
+ # "organizations/[organization_id], folders/[folder_id], or
486
+ # projects/[project_id]".
482
487
  # @!attribute [rw] page_token
483
488
  # @return [::String]
484
489
  # The value returned by the last `ListSourcesResponse`; indicates
@@ -510,7 +515,8 @@ module Google
510
515
  # @!attribute [rw] parent
511
516
  # @return [::String]
512
517
  # Required. Name of the organization assets should belong to. Its format is
513
- # "organizations/[organization_id]".
518
+ # "organizations/[organization_id], folders/[folder_id], or
519
+ # projects/[project_id]".
514
520
  # @!attribute [rw] filter
515
521
  # @return [::String]
516
522
  # Expression that defines the filter to apply across assets.
@@ -704,9 +710,12 @@ module Google
704
710
  # @!attribute [rw] parent
705
711
  # @return [::String]
706
712
  # Required. Name of the source the findings belong to. Its format is
707
- # "organizations/[organization_id]/sources/[source_id]". To list across all
708
- # sources provide a source_id of `-`. For example:
709
- # organizations/\\{organization_id}/sources/-
713
+ # "organizations/[organization_id]/sources/[source_id],
714
+ # folders/[folder_id]/sources/[source_id], or
715
+ # projects/[project_id]/sources/[source_id]". To list across all sources
716
+ # provide a source_id of `-`. For example:
717
+ # organizations/\\{organization_id}/sources/-, folders/\\{folder_id}/sources/- or
718
+ # projects/\\{projects_id}/sources/-
710
719
  # @!attribute [rw] filter
711
720
  # @return [::String]
712
721
  # Expression that defines the filter to apply across findings.
@@ -885,6 +894,11 @@ module Google
885
894
  # @!attribute [rw] parent_display_name
886
895
  # @return [::String]
887
896
  # The human readable name of resource's parent.
897
+ # @!attribute [rw] folders
898
+ # @return [::Array<::Google::Cloud::SecurityCenter::V1p1Beta1::Folder>]
899
+ # Contains a Folder message for each folder in the assets ancestry.
900
+ # The first folder is the deepest nested folder, and the last folder is
901
+ # the folder directly under the Organization.
888
902
  class Resource
889
903
  include ::Google::Protobuf::MessageExts
890
904
  extend ::Google::Protobuf::MessageExts::ClassMethods