google-cloud-security_center-v1 0.7.2 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8ace334dedc3fb0c8e9b6aedd2d5936d6d37513cc31cfde9d80aa65a823cda1
4
- data.tar.gz: 8fd43329c7322f5e754e8a18279aad16c09c2f95713ecbd75141a793fa37ed29
3
+ metadata.gz: d6cf0e3ef3cc8a50ab83356e628e5bdd41587b6f3b8f411716491013dcff25ab
4
+ data.tar.gz: feab623d462bf650c55eb957ff01dcf5b85c07cbb7539e1f688e2f9409f85e1a
5
5
  SHA512:
6
- metadata.gz: db8e5845d8205b2cd4dbc688ea41e2fe5bdce34efc1e924ebd2d110ee02ff5e07e700bd68b2877e7ac50927e0e2cbb99d2b3b6c16733e2f5ecdbca66c731a4db
7
- data.tar.gz: d0d41cf106e166c296076353ab797f594e0f7c16df5433f7f7fa891e58918dedc443ca18a20d13b7f9398bd7a6cbdcad1a22bef2754ac594b43581e5670bee17
6
+ metadata.gz: 3bbcbddb45342e566e0452fcc46dbccc8088eb1e9000d08928c21361ac5b655a564cbdff812286d2b651156f49a574ed6f77116c1da80f46aa665d4ddebd5865
7
+ data.tar.gz: 74b50f37bed033ce7c7dbc0c01e83541855f3ddfcdfde0c202e50c0214a357153896dda8bfbd142cd04c76f821ea66b9b6d72c90033486f3cc49b72e7bbc6d8b
@@ -263,8 +263,8 @@ module Google
263
263
  # Required. Resource name of the new source's parent. Its format should be
264
264
  # "organizations/[organization_id]".
265
265
  # @param source [::Google::Cloud::SecurityCenter::V1::Source, ::Hash]
266
- # Required. The Source being created, only the display_name and description
267
- # will be used. All other fields will be ignored.
266
+ # Required. The Source being created, only the display_name and description will be
267
+ # used. All other fields will be ignored.
268
268
  #
269
269
  # @yield [response, operation] Access the result along with the RPC operation
270
270
  # @yieldparam response [::Google::Cloud::SecurityCenter::V1::Source]
@@ -338,8 +338,8 @@ module Google
338
338
  # It must be alphanumeric and less than or equal to 32 characters and
339
339
  # greater than 0 characters in length.
340
340
  # @param finding [::Google::Cloud::SecurityCenter::V1::Finding, ::Hash]
341
- # Required. The Finding being created. The name and security_marks will be
342
- # ignored as they are both output only fields on this resource.
341
+ # Required. The Finding being created. The name and security_marks will be ignored as
342
+ # they are both output only fields on this resource.
343
343
  #
344
344
  # @yield [response, operation] Access the result along with the RPC operation
345
345
  # @yieldparam response [::Google::Cloud::SecurityCenter::V1::Finding]
@@ -405,17 +405,16 @@ module Google
405
405
  # the default parameter values, pass an empty Hash as a request object (see above).
406
406
  #
407
407
  # @param parent [::String]
408
- # Required. Resource name of the new notification config's parent. Its format
409
- # is "organizations/[organization_id]".
408
+ # Required. Resource name of the new notification config's parent. Its format is
409
+ # "organizations/[organization_id]".
410
410
  # @param config_id [::String]
411
411
  # Required.
412
412
  # Unique identifier provided by the client within the parent scope.
413
413
  # It must be between 1 and 128 characters, and contains alphanumeric
414
414
  # characters, underscores or hyphens only.
415
415
  # @param notification_config [::Google::Cloud::SecurityCenter::V1::NotificationConfig, ::Hash]
416
- # Required. The notification config being created. The name and the service
417
- # account will be ignored as they are both output only fields on this
418
- # resource.
416
+ # Required. The notification config being created. The name and the service account
417
+ # will be ignored as they are both output only fields on this resource.
419
418
  #
420
419
  # @yield [response, operation] Access the result along with the RPC operation
421
420
  # @yieldparam response [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
@@ -685,8 +684,8 @@ module Google
685
684
  # the default parameter values, pass an empty Hash as a request object (see above).
686
685
  #
687
686
  # @param name [::String]
688
- # Required. Name of the organization to get organization settings for. Its
689
- # format is "organizations/[organization_id]/organizationSettings".
687
+ # Required. Name of the organization to get organization settings for. Its format is
688
+ # "organizations/[organization_id]/organizationSettings".
690
689
  #
691
690
  # @yield [response, operation] Access the result along with the RPC operation
692
691
  # @yieldparam response [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
@@ -887,9 +886,9 @@ module Google
887
886
  # Use a negated partial match on the empty string to filter based on a
888
887
  # property not existing: `-resource_properties.my_property : ""`
889
888
  # @param group_by [::String]
890
- # Required. Expression that defines what assets fields to use for grouping.
891
- # The string value should follow SQL syntax: comma separated list of fields.
892
- # For example:
889
+ # Required. Expression that defines what assets fields to use for grouping. The string
890
+ # value should follow SQL syntax: comma separated list of fields. For
891
+ # example:
893
892
  # "security_center_properties.resource_project,security_center_properties.project".
894
893
  #
895
894
  # The following fields are supported when compare_duration is not set:
@@ -1085,9 +1084,9 @@ module Google
1085
1084
  # * resource.project_display_name: `=`, `:`
1086
1085
  # * resource.type: `=`, `:`
1087
1086
  # @param group_by [::String]
1088
- # Required. Expression that defines what assets fields to use for grouping
1089
- # (including `state_change`). The string value should follow SQL syntax:
1090
- # comma separated list of fields. For example: "parent,resource_name".
1087
+ # Required. Expression that defines what assets fields to use for grouping (including
1088
+ # `state_change`). The string value should follow SQL syntax: comma separated
1089
+ # list of fields. For example: "parent,resource_name".
1091
1090
  #
1092
1091
  # The following fields are supported:
1093
1092
  #
@@ -1683,8 +1682,8 @@ module Google
1683
1682
  # the default parameter values, pass an empty Hash as a request object (see above).
1684
1683
  #
1685
1684
  # @param parent [::String]
1686
- # Required. Resource name of the parent of sources to list. Its format should
1687
- # be "organizations/[organization_id], folders/[folder_id], or
1685
+ # Required. Resource name of the parent of sources to list. Its format should be
1686
+ # "organizations/[organization_id], folders/[folder_id], or
1688
1687
  # projects/[project_id]".
1689
1688
  # @param page_token [::String]
1690
1689
  # The value returned by the last `ListSourcesResponse`; indicates
@@ -1764,8 +1763,8 @@ module Google
1764
1763
  # the default parameter values, pass an empty Hash as a request object (see above).
1765
1764
  #
1766
1765
  # @param parent [::String]
1767
- # Required. Name of the organization to run asset discovery for. Its format
1768
- # is "organizations/[organization_id]".
1766
+ # Required. Name of the organization to run asset discovery for. Its format is
1767
+ # "organizations/[organization_id]".
1769
1768
  #
1770
1769
  # @yield [response, operation] Access the result along with the RPC operation
1771
1770
  # @yieldparam response [::Gapic::Operation]
@@ -2050,8 +2049,8 @@ module Google
2050
2049
  # the default parameter values, pass an empty Hash as a request object (see above).
2051
2050
  #
2052
2051
  # @param finding [::Google::Cloud::SecurityCenter::V1::Finding, ::Hash]
2053
- # Required. The finding resource to update or create if it does not already
2054
- # exist. parent, security_marks, and update_time will be ignored.
2052
+ # Required. The finding resource to update or create if it does not already exist.
2053
+ # parent, security_marks, and update_time will be ignored.
2055
2054
  #
2056
2055
  # In the case of creation, the finding id portion of the name must be
2057
2056
  # alphanumeric and less than or equal to 32 characters and greater than 0
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1
24
- VERSION = "0.7.2"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
+ require 'google/cloud/securitycenter/v1/indicator_pb'
8
9
  require 'google/cloud/securitycenter/v1/security_marks_pb'
9
10
  require 'google/protobuf/struct_pb'
10
11
  require 'google/protobuf/timestamp_pb'
@@ -24,6 +25,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
24
25
  optional :create_time, :message, 10, "google.protobuf.Timestamp"
25
26
  optional :severity, :enum, 12, "google.cloud.securitycenter.v1.Finding.Severity"
26
27
  optional :canonical_name, :string, 14
28
+ optional :finding_class, :enum, 17, "google.cloud.securitycenter.v1.Finding.FindingClass"
29
+ optional :indicator, :message, 18, "google.cloud.securitycenter.v1.Indicator"
27
30
  end
28
31
  add_enum "google.cloud.securitycenter.v1.Finding.State" do
29
32
  value :STATE_UNSPECIFIED, 0
@@ -37,6 +40,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
37
40
  value :MEDIUM, 3
38
41
  value :LOW, 4
39
42
  end
43
+ add_enum "google.cloud.securitycenter.v1.Finding.FindingClass" do
44
+ value :FINDING_CLASS_UNSPECIFIED, 0
45
+ value :THREAT, 1
46
+ value :VULNERABILITY, 2
47
+ value :MISCONFIGURATION, 3
48
+ value :OBSERVATION, 4
49
+ end
40
50
  end
41
51
  end
42
52
 
@@ -47,6 +57,7 @@ module Google
47
57
  Finding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Finding").msgclass
48
58
  Finding::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Finding.State").enummodule
49
59
  Finding::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Finding.Severity").enummodule
60
+ Finding::FindingClass = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Finding.FindingClass").enummodule
50
61
  end
51
62
  end
52
63
  end
@@ -0,0 +1,24 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/indicator.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/v1/indicator.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.securitycenter.v1.Indicator" do
10
+ repeated :ip_addresses, :string, 1
11
+ repeated :domains, :string, 2
12
+ end
13
+ end
14
+ end
15
+
16
+ module Google
17
+ module Cloud
18
+ module SecurityCenter
19
+ module V1
20
+ Indicator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Indicator").msgclass
21
+ end
22
+ end
23
+ end
24
+ end
@@ -96,6 +96,16 @@ module Google
96
96
  # "projects/\\{project_number}/sources/\\{source_id}/findings/\\{finding_id}",
97
97
  # depending on the closest CRM ancestor of the resource associated with the
98
98
  # finding.
99
+ # @!attribute [rw] finding_class
100
+ # @return [::Google::Cloud::SecurityCenter::V1::Finding::FindingClass]
101
+ # The class of the finding.
102
+ # @!attribute [rw] indicator
103
+ # @return [::Google::Cloud::SecurityCenter::V1::Indicator]
104
+ # Represents what's commonly known as an Indicator of compromise (IoC) in
105
+ # computer forensics. This is an artifact observed on a network or in an
106
+ # operating system that, with high confidence, indicates a computer
107
+ # intrusion.
108
+ # Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
99
109
  class Finding
100
110
  include ::Google::Protobuf::MessageExts
101
111
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -180,6 +190,26 @@ module Google
180
190
  # is not able to access data, execute code, or create resources.
181
191
  LOW = 4
182
192
  end
193
+
194
+ # Represents what kind of Finding it is.
195
+ module FindingClass
196
+ # Unspecified finding class.
197
+ FINDING_CLASS_UNSPECIFIED = 0
198
+
199
+ # Describes unwanted or malicious activity.
200
+ THREAT = 1
201
+
202
+ # Describes a potential weakness in software that increases risk to
203
+ # Confidentiality & Integrity & Availability.
204
+ VULNERABILITY = 2
205
+
206
+ # Describes a potential weakness in cloud resource/asset configuration that
207
+ # increases risk.
208
+ MISCONFIGURATION = 3
209
+
210
+ # Describes a security observation that is for informational purposes.
211
+ OBSERVATION = 4
212
+ end
183
213
  end
184
214
  end
185
215
  end
@@ -0,0 +1,41 @@
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 V1
24
+ # Represents what's commonly known as an Indicator of compromise (IoC) in
25
+ # computer forensics. This is an artifact observed on a network or in an
26
+ # operating system that, with high confidence, indicates a computer intrusion.
27
+ # Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
28
+ # @!attribute [rw] ip_addresses
29
+ # @return [::Array<::String>]
30
+ # List of ip addresses associated to the Finding.
31
+ # @!attribute [rw] domains
32
+ # @return [::Array<::String>]
33
+ # List of domains associated to the Finding.
34
+ class Indicator
35
+ include ::Google::Protobuf::MessageExts
36
+ extend ::Google::Protobuf::MessageExts::ClassMethods
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -33,8 +33,8 @@ module Google
33
33
  # greater than 0 characters in length.
34
34
  # @!attribute [rw] finding
35
35
  # @return [::Google::Cloud::SecurityCenter::V1::Finding]
36
- # Required. The Finding being created. The name and security_marks will be
37
- # ignored as they are both output only fields on this resource.
36
+ # Required. The Finding being created. The name and security_marks will be ignored as
37
+ # they are both output only fields on this resource.
38
38
  class CreateFindingRequest
39
39
  include ::Google::Protobuf::MessageExts
40
40
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -43,8 +43,8 @@ module Google
43
43
  # Request message for creating a notification config.
44
44
  # @!attribute [rw] parent
45
45
  # @return [::String]
46
- # Required. Resource name of the new notification config's parent. Its format
47
- # is "organizations/[organization_id]".
46
+ # Required. Resource name of the new notification config's parent. Its format is
47
+ # "organizations/[organization_id]".
48
48
  # @!attribute [rw] config_id
49
49
  # @return [::String]
50
50
  # Required.
@@ -53,9 +53,8 @@ module Google
53
53
  # characters, underscores or hyphens only.
54
54
  # @!attribute [rw] notification_config
55
55
  # @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
56
- # Required. The notification config being created. The name and the service
57
- # account will be ignored as they are both output only fields on this
58
- # resource.
56
+ # Required. The notification config being created. The name and the service account
57
+ # will be ignored as they are both output only fields on this resource.
59
58
  class CreateNotificationConfigRequest
60
59
  include ::Google::Protobuf::MessageExts
61
60
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -68,8 +67,8 @@ module Google
68
67
  # "organizations/[organization_id]".
69
68
  # @!attribute [rw] source
70
69
  # @return [::Google::Cloud::SecurityCenter::V1::Source]
71
- # Required. The Source being created, only the display_name and description
72
- # will be used. All other fields will be ignored.
70
+ # Required. The Source being created, only the display_name and description will be
71
+ # used. All other fields will be ignored.
73
72
  class CreateSourceRequest
74
73
  include ::Google::Protobuf::MessageExts
75
74
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -98,8 +97,8 @@ module Google
98
97
  # Request message for getting organization settings.
99
98
  # @!attribute [rw] name
100
99
  # @return [::String]
101
- # Required. Name of the organization to get organization settings for. Its
102
- # format is "organizations/[organization_id]/organizationSettings".
100
+ # Required. Name of the organization to get organization settings for. Its format is
101
+ # "organizations/[organization_id]/organizationSettings".
103
102
  class GetOrganizationSettingsRequest
104
103
  include ::Google::Protobuf::MessageExts
105
104
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -187,9 +186,9 @@ module Google
187
186
  # property not existing: `-resource_properties.my_property : ""`
188
187
  # @!attribute [rw] group_by
189
188
  # @return [::String]
190
- # Required. Expression that defines what assets fields to use for grouping.
191
- # The string value should follow SQL syntax: comma separated list of fields.
192
- # For example:
189
+ # Required. Expression that defines what assets fields to use for grouping. The string
190
+ # value should follow SQL syntax: comma separated list of fields. For
191
+ # example:
193
192
  # "security_center_properties.resource_project,security_center_properties.project".
194
193
  #
195
194
  # The following fields are supported when compare_duration is not set:
@@ -348,9 +347,9 @@ module Google
348
347
  # * resource.type: `=`, `:`
349
348
  # @!attribute [rw] group_by
350
349
  # @return [::String]
351
- # Required. Expression that defines what assets fields to use for grouping
352
- # (including `state_change`). The string value should follow SQL syntax:
353
- # comma separated list of fields. For example: "parent,resource_name".
350
+ # Required. Expression that defines what assets fields to use for grouping (including
351
+ # `state_change`). The string value should follow SQL syntax: comma separated
352
+ # list of fields. For example: "parent,resource_name".
354
353
  #
355
354
  # The following fields are supported:
356
355
  #
@@ -494,8 +493,8 @@ module Google
494
493
  # Request message for listing sources.
495
494
  # @!attribute [rw] parent
496
495
  # @return [::String]
497
- # Required. Resource name of the parent of sources to list. Its format should
498
- # be "organizations/[organization_id], folders/[folder_id], or
496
+ # Required. Resource name of the parent of sources to list. Its format should be
497
+ # "organizations/[organization_id], folders/[folder_id], or
499
498
  # projects/[project_id]".
500
499
  # @!attribute [rw] page_token
501
500
  # @return [::String]
@@ -978,8 +977,8 @@ module Google
978
977
  # Request message for running asset discovery for an organization.
979
978
  # @!attribute [rw] parent
980
979
  # @return [::String]
981
- # Required. Name of the organization to run asset discovery for. Its format
982
- # is "organizations/[organization_id]".
980
+ # Required. Name of the organization to run asset discovery for. Its format is
981
+ # "organizations/[organization_id]".
983
982
  class RunAssetDiscoveryRequest
984
983
  include ::Google::Protobuf::MessageExts
985
984
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -988,8 +987,8 @@ module Google
988
987
  # Request message for updating or creating a finding.
989
988
  # @!attribute [rw] finding
990
989
  # @return [::Google::Cloud::SecurityCenter::V1::Finding]
991
- # Required. The finding resource to update or create if it does not already
992
- # exist. parent, security_marks, and update_time will be ignored.
990
+ # Required. The finding resource to update or create if it does not already exist.
991
+ # parent, security_marks, and update_time will be ignored.
993
992
  #
994
993
  # In the case of creation, the finding id portion of the name must be
995
994
  # alphanumeric and less than or equal to 32 characters and greater than 0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security_center-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -200,6 +200,7 @@ files:
200
200
  - lib/google/cloud/securitycenter/v1/asset_pb.rb
201
201
  - lib/google/cloud/securitycenter/v1/finding_pb.rb
202
202
  - lib/google/cloud/securitycenter/v1/folder_pb.rb
203
+ - lib/google/cloud/securitycenter/v1/indicator_pb.rb
203
204
  - lib/google/cloud/securitycenter/v1/notification_config_pb.rb
204
205
  - lib/google/cloud/securitycenter/v1/notification_message_pb.rb
205
206
  - lib/google/cloud/securitycenter/v1/organization_settings_pb.rb
@@ -215,6 +216,7 @@ files:
215
216
  - proto_docs/google/cloud/securitycenter/v1/asset.rb
216
217
  - proto_docs/google/cloud/securitycenter/v1/finding.rb
217
218
  - proto_docs/google/cloud/securitycenter/v1/folder.rb
219
+ - proto_docs/google/cloud/securitycenter/v1/indicator.rb
218
220
  - proto_docs/google/cloud/securitycenter/v1/notification_config.rb
219
221
  - proto_docs/google/cloud/securitycenter/v1/notification_message.rb
220
222
  - proto_docs/google/cloud/securitycenter/v1/organization_settings.rb