google-cloud-security_center-v1p1beta1 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/security_center/v1p1beta1.rb +1 -1
  5. data/lib/google/cloud/security_center/v1p1beta1/security_center.rb +1 -1
  6. data/lib/google/cloud/security_center/v1p1beta1/security_center/client.rb +554 -529
  7. data/lib/google/cloud/security_center/v1p1beta1/security_center/credentials.rb +1 -1
  8. data/lib/google/cloud/security_center/v1p1beta1/security_center/operations.rb +109 -103
  9. data/lib/google/cloud/security_center/v1p1beta1/security_center/paths.rb +16 -16
  10. data/lib/google/cloud/security_center/v1p1beta1/version.rb +1 -1
  11. data/lib/google/cloud/securitycenter/v1p1beta1/notification_message_pb.rb +2 -0
  12. data/lib/google/cloud/securitycenter/v1p1beta1/resource_pb.rb +27 -0
  13. data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_pb.rb +0 -4
  14. data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_services_pb.rb +1 -3
  15. data/proto_docs/google/api/resource.rb +12 -12
  16. data/proto_docs/google/cloud/securitycenter/v1p1beta1/asset.rb +51 -48
  17. data/proto_docs/google/cloud/securitycenter/v1p1beta1/finding.rb +29 -29
  18. data/proto_docs/google/cloud/securitycenter/v1p1beta1/notification_config.rb +17 -16
  19. data/proto_docs/google/cloud/securitycenter/v1p1beta1/notification_message.rb +8 -5
  20. data/proto_docs/google/cloud/securitycenter/v1p1beta1/organization_settings.rb +11 -11
  21. data/proto_docs/google/cloud/securitycenter/v1p1beta1/resource.rb +48 -0
  22. data/proto_docs/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.rb +4 -4
  23. data/proto_docs/google/cloud/securitycenter/v1p1beta1/security_marks.rb +11 -11
  24. data/proto_docs/google/cloud/securitycenter/v1p1beta1/securitycenter_service.rb +220 -204
  25. data/proto_docs/google/cloud/securitycenter/v1p1beta1/source.rb +7 -7
  26. data/proto_docs/google/iam/v1/iam_policy.rb +15 -15
  27. data/proto_docs/google/iam/v1/options.rb +3 -3
  28. data/proto_docs/google/iam/v1/policy.rb +26 -26
  29. data/proto_docs/google/longrunning/operations.rb +30 -30
  30. data/proto_docs/google/protobuf/any.rb +4 -4
  31. data/proto_docs/google/protobuf/duration.rb +4 -4
  32. data/proto_docs/google/protobuf/empty.rb +2 -2
  33. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  34. data/proto_docs/google/protobuf/struct.rb +18 -18
  35. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  36. data/proto_docs/google/rpc/status.rb +6 -6
  37. data/proto_docs/google/type/expr.rb +6 -6
  38. metadata +35 -6
  39. data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -35,10 +35,10 @@ module Google
35
35
  # @param source [String]
36
36
  # @param finding [String]
37
37
  #
38
- # @return [String]
38
+ # @return [::String]
39
39
  def finding_path organization:, source:, finding:
40
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
41
- raise ArgumentError, "source cannot contain /" if source.to_s.include? "/"
40
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
41
+ raise ::ArgumentError, "source cannot contain /" if source.to_s.include? "/"
42
42
 
43
43
  "organizations/#{organization}/sources/#{source}/findings/#{finding}"
44
44
  end
@@ -53,9 +53,9 @@ module Google
53
53
  # @param organization [String]
54
54
  # @param notification_config [String]
55
55
  #
56
- # @return [String]
56
+ # @return [::String]
57
57
  def notification_config_path organization:, notification_config:
58
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
58
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
59
59
 
60
60
  "organizations/#{organization}/notificationConfigs/#{notification_config}"
61
61
  end
@@ -69,7 +69,7 @@ module Google
69
69
  #
70
70
  # @param organization [String]
71
71
  #
72
- # @return [String]
72
+ # @return [::String]
73
73
  def organization_path organization:
74
74
  "organizations/#{organization}"
75
75
  end
@@ -83,7 +83,7 @@ module Google
83
83
  #
84
84
  # @param organization [String]
85
85
  #
86
- # @return [String]
86
+ # @return [::String]
87
87
  def organization_settings_path organization:
88
88
  "organizations/#{organization}/organizationSettings"
89
89
  end
@@ -108,24 +108,24 @@ module Google
108
108
  # @param source [String]
109
109
  # @param finding [String]
110
110
  #
111
- # @return [String]
111
+ # @return [::String]
112
112
  def security_marks_path **args
113
113
  resources = {
114
114
  "asset:organization" => (proc do |organization:, asset:|
115
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
115
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
116
116
 
117
117
  "organizations/#{organization}/assets/#{asset}/securityMarks"
118
118
  end),
119
119
  "finding:organization:source" => (proc do |organization:, source:, finding:|
120
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
121
- raise ArgumentError, "source cannot contain /" if source.to_s.include? "/"
120
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
121
+ raise ::ArgumentError, "source cannot contain /" if source.to_s.include? "/"
122
122
 
123
123
  "organizations/#{organization}/sources/#{source}/findings/#{finding}/securityMarks"
124
124
  end)
125
125
  }
126
126
 
127
127
  resource = resources[args.keys.sort.join(":")]
128
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
128
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
129
129
  resource.call(**args)
130
130
  end
131
131
 
@@ -139,9 +139,9 @@ module Google
139
139
  # @param organization [String]
140
140
  # @param source [String]
141
141
  #
142
- # @return [String]
142
+ # @return [::String]
143
143
  def source_path organization:, source:
144
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
144
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
145
145
 
146
146
  "organizations/#{organization}/sources/#{source}"
147
147
  end
@@ -156,9 +156,9 @@ module Google
156
156
  # @param project [String]
157
157
  # @param topic [String]
158
158
  #
159
- # @return [String]
159
+ # @return [::String]
160
160
  def topic_path project:, topic:
161
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
161
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
162
162
 
163
163
  "projects/#{project}/topics/#{topic}"
164
164
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1p1beta1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -6,10 +6,12 @@ require 'google/protobuf'
6
6
  require 'google/api/annotations_pb'
7
7
  require 'google/cloud/securitycenter/v1p1beta1/asset_pb'
8
8
  require 'google/cloud/securitycenter/v1p1beta1/finding_pb'
9
+ require 'google/cloud/securitycenter/v1p1beta1/resource_pb'
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_file("google/cloud/securitycenter/v1p1beta1/notification_message.proto", :syntax => :proto3) do
11
12
  add_message "google.cloud.securitycenter.v1p1beta1.NotificationMessage" do
12
13
  optional :notification_config_name, :string, 1
14
+ optional :resource, :message, 3, "google.cloud.securitycenter.v1p1beta1.Resource"
13
15
  oneof :event do
14
16
  optional :finding, :message, 2, "google.cloud.securitycenter.v1p1beta1.Finding"
15
17
  end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1p1beta1/resource.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/resource.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.securitycenter.v1p1beta1.Resource" do
10
+ optional :name, :string, 1
11
+ optional :project, :string, 2
12
+ optional :project_display_name, :string, 3
13
+ optional :parent, :string, 4
14
+ optional :parent_display_name, :string, 5
15
+ end
16
+ end
17
+ end
18
+
19
+ module Google
20
+ module Cloud
21
+ module SecurityCenter
22
+ module V1p1beta1
23
+ Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.Resource").msgclass
24
+ end
25
+ end
26
+ end
27
+ end
@@ -56,7 +56,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
56
56
  optional :group_by, :string, 3
57
57
  optional :compare_duration, :message, 4, "google.protobuf.Duration"
58
58
  optional :read_time, :message, 5, "google.protobuf.Timestamp"
59
- optional :having, :string, 6
60
59
  optional :page_token, :string, 7
61
60
  optional :page_size, :int32, 8
62
61
  end
@@ -72,7 +71,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
72
71
  optional :group_by, :string, 3
73
72
  optional :read_time, :message, 4, "google.protobuf.Timestamp"
74
73
  optional :compare_duration, :message, 5, "google.protobuf.Duration"
75
- optional :having, :string, 6
76
74
  optional :page_token, :string, 7
77
75
  optional :page_size, :int32, 8
78
76
  end
@@ -110,7 +108,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
110
108
  optional :order_by, :string, 3
111
109
  optional :read_time, :message, 4, "google.protobuf.Timestamp"
112
110
  optional :compare_duration, :message, 5, "google.protobuf.Duration"
113
- optional :having, :string, 6
114
111
  optional :field_mask, :message, 7, "google.protobuf.FieldMask"
115
112
  optional :page_token, :string, 8
116
113
  optional :page_size, :int32, 9
@@ -137,7 +134,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
137
134
  optional :order_by, :string, 3
138
135
  optional :read_time, :message, 4, "google.protobuf.Timestamp"
139
136
  optional :compare_duration, :message, 5, "google.protobuf.Duration"
140
- optional :having, :string, 6
141
137
  optional :field_mask, :message, 7, "google.protobuf.FieldMask"
142
138
  optional :page_token, :string, 8
143
139
  optional :page_size, :int32, 9
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto for package 'Google.Cloud.SecurityCenter.V1p1beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
  require 'grpc'
21
20
  require 'google/cloud/securitycenter/v1p1beta1/securitycenter_service_pb'
@@ -86,7 +85,6 @@ module Google
86
85
  rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
87
86
  # Returns the permissions that a caller has on the specified source.
88
87
  rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
89
- #
90
88
  # Creates or updates a finding. The corresponding source must exist for a
91
89
  # finding creation to succeed.
92
90
  rpc :UpdateFinding, Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest, Google::Cloud::SecurityCenter::V1p1beta1::Finding
@@ -128,7 +128,7 @@ module Google
128
128
  # - pattern: "shelves/{shelf}"
129
129
  # parent_type: "cloudresourcemanager.googleapis.com/Folder"
130
130
  # @!attribute [rw] type
131
- # @return [String]
131
+ # @return [::String]
132
132
  # The resource type. It must be in the format of
133
133
  # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
134
134
  # singular and must not include version numbers.
@@ -140,7 +140,7 @@ module Google
140
140
  # should use PascalCase (UpperCamelCase). The maximum number of
141
141
  # characters allowed for the `resource_type_kind` is 100.
142
142
  # @!attribute [rw] pattern
143
- # @return [Array<String>]
143
+ # @return [::Array<::String>]
144
144
  # Optional. The relative resource name pattern associated with this resource
145
145
  # type. The DNS prefix of the full resource name shouldn't be specified here.
146
146
  #
@@ -161,11 +161,11 @@ module Google
161
161
  # the same component name (e.g. "project") refers to IDs of the same
162
162
  # type of resource.
163
163
  # @!attribute [rw] name_field
164
- # @return [String]
164
+ # @return [::String]
165
165
  # Optional. The field on the resource that designates the resource name
166
166
  # field. If omitted, this is assumed to be "name".
167
167
  # @!attribute [rw] history
168
- # @return [Google::Api::ResourceDescriptor::History]
168
+ # @return [::Google::Api::ResourceDescriptor::History]
169
169
  # Optional. The historical or future-looking state of the resource pattern.
170
170
  #
171
171
  # Example:
@@ -182,19 +182,19 @@ module Google
182
182
  # };
183
183
  # }
184
184
  # @!attribute [rw] plural
185
- # @return [String]
185
+ # @return [::String]
186
186
  # The plural name used in the resource name, such as 'projects' for
187
187
  # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
188
  # field in k8s CRD spec
189
189
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
190
190
  # @!attribute [rw] singular
191
- # @return [String]
191
+ # @return [::String]
192
192
  # The same concept of the `singular` field in k8s CRD spec
193
193
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
194
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
195
195
  class ResourceDescriptor
196
- include Google::Protobuf::MessageExts
197
- extend Google::Protobuf::MessageExts::ClassMethods
196
+ include ::Google::Protobuf::MessageExts
197
+ extend ::Google::Protobuf::MessageExts::ClassMethods
198
198
 
199
199
  # A description of the historical or future-looking state of the
200
200
  # resource pattern.
@@ -216,7 +216,7 @@ module Google
216
216
  # Defines a proto annotation that describes a string field that refers to
217
217
  # an API resource.
218
218
  # @!attribute [rw] type
219
- # @return [String]
219
+ # @return [::String]
220
220
  # The resource type that the annotated field references.
221
221
  #
222
222
  # Example:
@@ -227,7 +227,7 @@ module Google
227
227
  # }];
228
228
  # }
229
229
  # @!attribute [rw] child_type
230
- # @return [String]
230
+ # @return [::String]
231
231
  # The resource type of a child collection that the annotated field
232
232
  # references. This is useful for annotating the `parent` field that
233
233
  # doesn't have a fixed resource type.
@@ -240,8 +240,8 @@ module Google
240
240
  # };
241
241
  # }
242
242
  class ResourceReference
243
- include Google::Protobuf::MessageExts
244
- extend Google::Protobuf::MessageExts::ClassMethods
243
+ include ::Google::Protobuf::MessageExts
244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
245
245
  end
246
246
  end
247
247
  end
@@ -21,104 +21,107 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1p1beta1
24
- # Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
25
- # Platform (GCP) resource.
24
+ # Security Command Center representation of a Google Cloud
25
+ # resource.
26
26
  #
27
- # The Asset is a Cloud SCC resource that captures information about a single
28
- # GCP resource. All modifications to an Asset are only within the context of
29
- # Cloud SCC and don't affect the referenced GCP resource.
27
+ # The Asset is a Security Command Center resource that captures information
28
+ # about a single Google Cloud resource. All modifications to an Asset are only
29
+ # within the context of Security Command Center and don't affect the referenced
30
+ # Google Cloud resource.
30
31
  # @!attribute [rw] name
31
- # @return [String]
32
+ # @return [::String]
32
33
  # The relative resource name of this asset. See:
33
34
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
34
35
  # Example:
35
36
  # "organizations/\\{organization_id}/assets/\\{asset_id}".
36
37
  # @!attribute [rw] security_center_properties
37
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Asset::SecurityCenterProperties]
38
- # Cloud SCC managed properties. These properties are managed by
39
- # Cloud SCC and cannot be modified by the user.
38
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Asset::SecurityCenterProperties]
39
+ # Security Command Center managed properties. These properties are managed by
40
+ # Security Command Center and cannot be modified by the user.
40
41
  # @!attribute [rw] resource_properties
41
- # @return [Google::Protobuf::Map{String => Google::Protobuf::Value}]
42
+ # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
42
43
  # Resource managed properties. These properties are managed and defined by
43
- # the GCP resource and cannot be modified by the user.
44
+ # the Google Cloud resource and cannot be modified by the user.
44
45
  # @!attribute [rw] security_marks
45
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
46
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
46
47
  # User specified security marks. These marks are entirely managed by the user
47
48
  # and come from the SecurityMarks resource that belongs to the asset.
48
49
  # @!attribute [rw] create_time
49
- # @return [Google::Protobuf::Timestamp]
50
- # The time at which the asset was created in Cloud SCC.
50
+ # @return [::Google::Protobuf::Timestamp]
51
+ # The time at which the asset was created in Security Command Center.
51
52
  # @!attribute [rw] update_time
52
- # @return [Google::Protobuf::Timestamp]
53
+ # @return [::Google::Protobuf::Timestamp]
53
54
  # The time at which the asset was last updated, added, or deleted in Cloud
54
55
  # SCC.
55
56
  # @!attribute [rw] iam_policy
56
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Asset::IamPolicy]
57
- # IAM Policy information associated with the GCP resource described by the
58
- # Cloud SCC asset. This information is managed and defined by the GCP
59
- # resource and cannot be modified by the user.
57
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Asset::IamPolicy]
58
+ # Cloud IAM Policy information associated with the Google Cloud resource
59
+ # described by the Security Command Center asset. This information is managed
60
+ # and defined by the Google Cloud resource and cannot be modified by the
61
+ # user.
60
62
  class Asset
61
- include Google::Protobuf::MessageExts
62
- extend Google::Protobuf::MessageExts::ClassMethods
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
63
65
 
64
- # Cloud SCC managed properties. These properties are managed by Cloud SCC and
65
- # cannot be modified by the user.
66
+ # Security Command Center managed properties. These properties are managed by
67
+ # Security Command Center and cannot be modified by the user.
66
68
  # @!attribute [rw] resource_name
67
- # @return [String]
68
- # The full resource name of the GCP resource this asset
69
+ # @return [::String]
70
+ # The full resource name of the Google Cloud resource this asset
69
71
  # represents. This field is immutable after create time. See:
70
72
  # https://cloud.google.com/apis/design/resource_names#full_resource_name
71
73
  # @!attribute [rw] resource_type
72
- # @return [String]
73
- # The type of the GCP resource. Examples include: APPLICATION,
74
+ # @return [::String]
75
+ # The type of the Google Cloud resource. Examples include: APPLICATION,
74
76
  # PROJECT, and ORGANIZATION. This is a case insensitive field defined by
75
- # Cloud SCC and/or the producer of the resource and is immutable
76
- # after create time.
77
+ # Security Command Center and/or the producer of the resource and is
78
+ # immutable after create time.
77
79
  # @!attribute [rw] resource_parent
78
- # @return [String]
80
+ # @return [::String]
79
81
  # The full resource name of the immediate parent of the resource. See:
80
82
  # https://cloud.google.com/apis/design/resource_names#full_resource_name
81
83
  # @!attribute [rw] resource_project
82
- # @return [String]
84
+ # @return [::String]
83
85
  # The full resource name of the project the resource belongs to. See:
84
86
  # https://cloud.google.com/apis/design/resource_names#full_resource_name
85
87
  # @!attribute [rw] resource_owners
86
- # @return [Array<String>]
88
+ # @return [::Array<::String>]
87
89
  # Owners of the Google Cloud resource.
88
90
  # @!attribute [rw] resource_display_name
89
- # @return [String]
91
+ # @return [::String]
90
92
  # The user defined display name for this resource.
91
93
  # @!attribute [rw] resource_parent_display_name
92
- # @return [String]
94
+ # @return [::String]
93
95
  # The user defined display name for the parent of this resource.
94
96
  # @!attribute [rw] resource_project_display_name
95
- # @return [String]
97
+ # @return [::String]
96
98
  # The user defined display name for the project of this resource.
97
99
  class SecurityCenterProperties
98
- include Google::Protobuf::MessageExts
99
- extend Google::Protobuf::MessageExts::ClassMethods
100
+ include ::Google::Protobuf::MessageExts
101
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
102
  end
101
103
 
102
- # IAM Policy information associated with the GCP resource described by the
103
- # Cloud SCC asset. This information is managed and defined by the GCP
104
- # resource and cannot be modified by the user.
104
+ # Cloud IAM Policy information associated with the Google Cloud resource
105
+ # described by the Security Command Center asset. This information is managed
106
+ # and defined by the Google Cloud resource and cannot be modified by the
107
+ # user.
105
108
  # @!attribute [rw] policy_blob
106
- # @return [String]
109
+ # @return [::String]
107
110
  # The JSON representation of the Policy associated with the asset.
108
- # See https://cloud.google.com/iam/reference/rest/v1/Policy for
111
+ # See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
109
112
  # format details.
110
113
  class IamPolicy
111
- include Google::Protobuf::MessageExts
112
- extend Google::Protobuf::MessageExts::ClassMethods
114
+ include ::Google::Protobuf::MessageExts
115
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
116
  end
114
117
 
115
118
  # @!attribute [rw] key
116
- # @return [String]
119
+ # @return [::String]
117
120
  # @!attribute [rw] value
118
- # @return [Google::Protobuf::Value]
121
+ # @return [::Google::Protobuf::Value]
119
122
  class ResourcePropertiesEntry
120
- include Google::Protobuf::MessageExts
121
- extend Google::Protobuf::MessageExts::ClassMethods
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
122
125
  end
123
126
  end
124
127
  end
@@ -21,76 +21,76 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1p1beta1
24
- # Cloud Security Command Center (Cloud SCC) finding.
24
+ # Security Command Center finding.
25
25
  #
26
26
  # A finding is a record of assessment data (security, risk, health or privacy)
27
- # ingested into Cloud SCC for presentation, notification, analysis,
28
- # policy testing, and enforcement. For example, an XSS vulnerability in an
29
- # App Engine application is a finding.
27
+ # ingested into Security Command Center for presentation, notification,
28
+ # analysis, policy testing, and enforcement. For example, an XSS vulnerability
29
+ # in an App Engine application is a finding.
30
30
  # @!attribute [rw] name
31
- # @return [String]
31
+ # @return [::String]
32
32
  # The relative resource name of this finding. See:
33
33
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
34
34
  # Example:
35
35
  # "organizations/\\{organization_id}/sources/\\{source_id}/findings/\\{finding_id}"
36
36
  # @!attribute [rw] parent
37
- # @return [String]
37
+ # @return [::String]
38
38
  # The relative resource name of the source the finding belongs to. See:
39
39
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
40
40
  # This field is immutable after creation time.
41
41
  # For example:
42
42
  # "organizations/\\{organization_id}/sources/\\{source_id}"
43
43
  # @!attribute [rw] resource_name
44
- # @return [String]
45
- # For findings on Google Cloud Platform (GCP) resources, the full resource
46
- # name of the GCP resource this finding is for. See:
44
+ # @return [::String]
45
+ # For findings on Google Cloud resources, the full resource
46
+ # name of the Google Cloud resource this finding is for. See:
47
47
  # https://cloud.google.com/apis/design/resource_names#full_resource_name
48
- # When the finding is for a non-GCP resource, the resourceName can be a
49
- # customer or partner defined string.
50
- # This field is immutable after creation time.
48
+ # When the finding is for a non-Google Cloud resource, the resourceName can
49
+ # be a customer or partner defined string. This field is immutable after
50
+ # creation time.
51
51
  # @!attribute [rw] state
52
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Finding::State]
52
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding::State]
53
53
  # The state of the finding.
54
54
  # @!attribute [rw] category
55
- # @return [String]
55
+ # @return [::String]
56
56
  # The additional taxonomy group within findings from a given source.
57
57
  # This field is immutable after creation time.
58
58
  # Example: "XSS_FLASH_INJECTION"
59
59
  # @!attribute [rw] external_uri
60
- # @return [String]
61
- # The URI that, if available, points to a web page outside of Cloud SCC
62
- # where additional information about the finding can be found. This field is
63
- # guaranteed to be either empty or a well formed URL.
60
+ # @return [::String]
61
+ # The URI that, if available, points to a web page outside of Security
62
+ # Command Center where additional information about the finding can be found.
63
+ # This field is guaranteed to be either empty or a well formed URL.
64
64
  # @!attribute [rw] source_properties
65
- # @return [Google::Protobuf::Map{String => Google::Protobuf::Value}]
65
+ # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
66
66
  # Source specific properties. These properties are managed by the source
67
67
  # that writes the finding. The key names in the source_properties map must be
68
68
  # between 1 and 255 characters, and must start with a letter and contain
69
69
  # alphanumeric characters or underscores only.
70
70
  # @!attribute [r] security_marks
71
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
71
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
72
72
  # Output only. User specified security marks. These marks are entirely
73
73
  # managed by the user and come from the SecurityMarks resource that belongs
74
74
  # to the finding.
75
75
  # @!attribute [rw] event_time
76
- # @return [Google::Protobuf::Timestamp]
76
+ # @return [::Google::Protobuf::Timestamp]
77
77
  # The time at which the event took place. For example, if the finding
78
78
  # represents an open firewall it would capture the time the detector believes
79
79
  # the firewall became open. The accuracy is determined by the detector.
80
80
  # @!attribute [rw] create_time
81
- # @return [Google::Protobuf::Timestamp]
82
- # The time at which the finding was created in Cloud SCC.
81
+ # @return [::Google::Protobuf::Timestamp]
82
+ # The time at which the finding was created in Security Command Center.
83
83
  class Finding
84
- include Google::Protobuf::MessageExts
85
- extend Google::Protobuf::MessageExts::ClassMethods
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
86
 
87
87
  # @!attribute [rw] key
88
- # @return [String]
88
+ # @return [::String]
89
89
  # @!attribute [rw] value
90
- # @return [Google::Protobuf::Value]
90
+ # @return [::Google::Protobuf::Value]
91
91
  class SourcePropertiesEntry
92
- include Google::Protobuf::MessageExts
93
- extend Google::Protobuf::MessageExts::ClassMethods
92
+ include ::Google::Protobuf::MessageExts
93
+ extend ::Google::Protobuf::MessageExts::ClassMethods
94
94
  end
95
95
 
96
96
  # The state of the finding.