google-cloud-security_center-v2 0.3.0 → 0.4.0
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.
- checksums.yaml +4 -4
- data/lib/google/cloud/security_center/v2/security_center/client.rb +37 -33
- data/lib/google/cloud/security_center/v2/security_center/rest/client.rb +37 -33
- data/lib/google/cloud/security_center/v2/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v2/bigquery_export_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v2/finding_pb.rb +4 -1
- data/lib/google/cloud/securitycenter/v2/mitre_attack_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v2/mute_config_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v2/notification_config_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v2/resource_value_config_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v2/securitycenter_service_pb.rb +2 -1
- data/lib/google/cloud/securitycenter/v2/vulnerability_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/securitycenter/v2/attack_exposure.rb +1 -1
- data/proto_docs/google/cloud/securitycenter/v2/attack_path.rb +3 -3
- data/proto_docs/google/cloud/securitycenter/v2/bigquery_export.rb +2 -2
- data/proto_docs/google/cloud/securitycenter/v2/finding.rb +47 -0
- data/proto_docs/google/cloud/securitycenter/v2/mitre_attack.rb +8 -2
- data/proto_docs/google/cloud/securitycenter/v2/mute_config.rb +15 -2
- data/proto_docs/google/cloud/securitycenter/v2/notification_config.rb +1 -1
- data/proto_docs/google/cloud/securitycenter/v2/resource.rb +5 -5
- data/proto_docs/google/cloud/securitycenter/v2/resource_value_config.rb +9 -9
- data/proto_docs/google/cloud/securitycenter/v2/securitycenter_service.rb +52 -35
- data/proto_docs/google/cloud/securitycenter/v2/simulation.rb +1 -1
- data/proto_docs/google/cloud/securitycenter/v2/vulnerability.rb +3 -0
- metadata +2 -2
@@ -84,9 +84,26 @@ module Google
|
|
84
84
|
# * string literals in quotes.
|
85
85
|
# * integer literals without quotes.
|
86
86
|
# * boolean literals `true` and `false` without quotes.
|
87
|
+
# @!attribute [rw] mute_state
|
88
|
+
# @return [::Google::Cloud::SecurityCenter::V2::BulkMuteFindingsRequest::MuteState]
|
89
|
+
# Optional. All findings matching the given filter will have their mute state
|
90
|
+
# set to this value. The default value is `MUTED`. Setting this to
|
91
|
+
# `UNDEFINED` will clear the mute state on all matching findings.
|
87
92
|
class BulkMuteFindingsRequest
|
88
93
|
include ::Google::Protobuf::MessageExts
|
89
94
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
|
96
|
+
# The mute state.
|
97
|
+
module MuteState
|
98
|
+
# Unused.
|
99
|
+
MUTE_STATE_UNSPECIFIED = 0
|
100
|
+
|
101
|
+
# Matching findings will be muted (default).
|
102
|
+
MUTED = 1
|
103
|
+
|
104
|
+
# Matching findings will have their mute state cleared.
|
105
|
+
UNDEFINED = 2
|
106
|
+
end
|
90
107
|
end
|
91
108
|
|
92
109
|
# The response to a BulkMute request. Contains the LRO information.
|
@@ -99,9 +116,9 @@ module Google
|
|
99
116
|
# @!attribute [rw] parent
|
100
117
|
# @return [::String]
|
101
118
|
# Required. The name of the parent resource of the new BigQuery export. Its
|
102
|
-
# format is
|
103
|
-
#
|
104
|
-
#
|
119
|
+
# format is `organizations/[organization_id]/locations/[location_id]`,
|
120
|
+
# `folders/[folder_id]/locations/[location_id]`, or
|
121
|
+
# `projects/[project_id]/locations/[location_id]`.
|
105
122
|
# @!attribute [rw] big_query_export
|
106
123
|
# @return [::Google::Cloud::SecurityCenter::V2::BigQueryExport]
|
107
124
|
# Required. The BigQuery export being created.
|
@@ -143,9 +160,9 @@ module Google
|
|
143
160
|
# @!attribute [rw] parent
|
144
161
|
# @return [::String]
|
145
162
|
# Required. Resource name of the new mute configs's parent. Its format is
|
146
|
-
#
|
147
|
-
#
|
148
|
-
#
|
163
|
+
# `organizations/[organization_id]/locations/[location_id]`,
|
164
|
+
# `folders/[folder_id]/locations/[location_id]`, or
|
165
|
+
# `projects/[project_id]/locations/[location_id]`.
|
149
166
|
# @!attribute [rw] mute_config
|
150
167
|
# @return [::Google::Cloud::SecurityCenter::V2::MuteConfig]
|
151
168
|
# Required. The mute config being created.
|
@@ -164,9 +181,9 @@ module Google
|
|
164
181
|
# @!attribute [rw] parent
|
165
182
|
# @return [::String]
|
166
183
|
# Required. Resource name of the new notification config's parent. Its format
|
167
|
-
# is
|
168
|
-
#
|
169
|
-
#
|
184
|
+
# is `organizations/[organization_id]/locations/[location_id]`,
|
185
|
+
# `folders/[folder_id]/locations/[location_id]`, or
|
186
|
+
# `projects/[project_id]/locations/[location_id]`.
|
170
187
|
# @!attribute [rw] config_id
|
171
188
|
# @return [::String]
|
172
189
|
# Required.
|
@@ -199,7 +216,7 @@ module Google
|
|
199
216
|
# @!attribute [rw] parent
|
200
217
|
# @return [::String]
|
201
218
|
# Required. Resource name of the new source's parent. Its format should be
|
202
|
-
#
|
219
|
+
# `organizations/[organization_id]`.
|
203
220
|
# @!attribute [rw] source
|
204
221
|
# @return [::Google::Cloud::SecurityCenter::V2::Source]
|
205
222
|
# Required. The Source being created, only the display_name and description
|
@@ -334,7 +351,7 @@ module Google
|
|
334
351
|
# @!attribute [rw] name
|
335
352
|
# @return [::String]
|
336
353
|
# Required. Relative resource name of the source. Its format is
|
337
|
-
#
|
354
|
+
# `organizations/[organization_id]/source/[source_id]`.
|
338
355
|
class GetSourceRequest
|
339
356
|
include ::Google::Protobuf::MessageExts
|
340
357
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -478,10 +495,10 @@ module Google
|
|
478
495
|
# Required. Name of parent to list attack paths.
|
479
496
|
#
|
480
497
|
# Valid formats:
|
481
|
-
#
|
482
|
-
#
|
483
|
-
#
|
484
|
-
#
|
498
|
+
# `organizations/{organization}`,
|
499
|
+
# `organizations/{organization}/simulations/{simulation}`
|
500
|
+
# `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
|
501
|
+
# `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
|
485
502
|
# @!attribute [rw] filter
|
486
503
|
# @return [::String]
|
487
504
|
# The filter expression that filters the attack path in the response.
|
@@ -524,8 +541,8 @@ module Google
|
|
524
541
|
# Required. The organization name or simulation name of this simulation
|
525
542
|
#
|
526
543
|
# Valid format:
|
527
|
-
#
|
528
|
-
#
|
544
|
+
# `organizations/{organization}/simulations/latest`
|
545
|
+
# `organizations/{organization}/simulations/{simulation}`
|
529
546
|
class GetSimulationRequest
|
530
547
|
include ::Google::Protobuf::MessageExts
|
531
548
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -537,7 +554,7 @@ module Google
|
|
537
554
|
# Required. The name of this valued resource
|
538
555
|
#
|
539
556
|
# Valid format:
|
540
|
-
#
|
557
|
+
# `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
|
541
558
|
class GetValuedResourceRequest
|
542
559
|
include ::Google::Protobuf::MessageExts
|
543
560
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -548,9 +565,9 @@ module Google
|
|
548
565
|
# @!attribute [rw] parent
|
549
566
|
# @return [::String]
|
550
567
|
# Required. The parent, which owns the collection of BigQuery exports. Its
|
551
|
-
# format is
|
552
|
-
#
|
553
|
-
#
|
568
|
+
# format is `organizations/[organization_id]/locations/[location_id]`,
|
569
|
+
# `folders/[folder_id]/locations/[location_id]`, or
|
570
|
+
# `projects/[project_id]/locations/[location_id]`.
|
554
571
|
# @!attribute [rw] page_size
|
555
572
|
# @return [::Integer]
|
556
573
|
# The maximum number of configs to return. The service may return fewer than
|
@@ -755,13 +772,13 @@ module Google
|
|
755
772
|
# @return [::String]
|
756
773
|
# A string representation of the resource path.
|
757
774
|
# For Google Cloud, it has the format of
|
758
|
-
# organizations
|
775
|
+
# `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
|
759
776
|
# where there can be any number of folders.
|
760
777
|
# For AWS, it has the format of
|
761
|
-
# org
|
778
|
+
# `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
|
762
779
|
# where there can be any number of organizational units.
|
763
780
|
# For Azure, it has the format of
|
764
|
-
# mg
|
781
|
+
# `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
|
765
782
|
# where there can be any number of management groups.
|
766
783
|
class Resource
|
767
784
|
include ::Google::Protobuf::MessageExts
|
@@ -776,11 +793,11 @@ module Google
|
|
776
793
|
# @!attribute [rw] parent
|
777
794
|
# @return [::String]
|
778
795
|
# Required. The parent, which owns the collection of mute configs. Its format
|
779
|
-
# is
|
780
|
-
#
|
781
|
-
#
|
782
|
-
#
|
783
|
-
#
|
796
|
+
# is `organizations/[organization_id]", "folders/[folder_id]`,
|
797
|
+
# `projects/[project_id]`,
|
798
|
+
# `organizations/[organization_id]/locations/[location_id]`,
|
799
|
+
# `folders/[folder_id]/locations/[location_id]`,
|
800
|
+
# `projects/[project_id]/locations/[location_id]`.
|
784
801
|
# @!attribute [rw] page_size
|
785
802
|
# @return [::Integer]
|
786
803
|
# The maximum number of configs to return. The service may return fewer than
|
@@ -852,7 +869,7 @@ module Google
|
|
852
869
|
# @return [::String]
|
853
870
|
# Required. The parent, which owns the collection of resource value configs.
|
854
871
|
# Its format is
|
855
|
-
#
|
872
|
+
# `organizations/[organization_id]`
|
856
873
|
# @!attribute [rw] page_size
|
857
874
|
# @return [::Integer]
|
858
875
|
# The maximum number of configs to return. The service may return fewer than
|
@@ -891,8 +908,8 @@ module Google
|
|
891
908
|
# @!attribute [rw] parent
|
892
909
|
# @return [::String]
|
893
910
|
# Required. Resource name of the parent of sources to list. Its format should
|
894
|
-
# be
|
895
|
-
#
|
911
|
+
# be `organizations/[organization_id]`, `folders/[folder_id]`, or
|
912
|
+
# `projects/[project_id]`.
|
896
913
|
# @!attribute [rw] page_token
|
897
914
|
# @return [::String]
|
898
915
|
# The value returned by the last `ListSourcesResponse`; indicates
|
@@ -926,9 +943,9 @@ module Google
|
|
926
943
|
# Required. Name of parent to list exposed resources.
|
927
944
|
#
|
928
945
|
# Valid formats:
|
929
|
-
#
|
930
|
-
#
|
931
|
-
#
|
946
|
+
# `organizations/{organization}`,
|
947
|
+
# `organizations/{organization}/simulations/{simulation}`
|
948
|
+
# `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
|
932
949
|
# @!attribute [rw] filter
|
933
950
|
# @return [::String]
|
934
951
|
# The filter expression that filters the valued resources in the response.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
27
|
# Full resource name of the Simulation:
|
28
|
-
# organizations/123/simulations/456
|
28
|
+
# `organizations/123/simulations/456`
|
29
29
|
# @!attribute [r] create_time
|
30
30
|
# @return [::Google::Protobuf::Timestamp]
|
31
31
|
# Output only. Time simulation was created
|
@@ -71,6 +71,9 @@ module Google
|
|
71
71
|
# @return [::Boolean]
|
72
72
|
# Whether or not the vulnerability was zero day when the finding was
|
73
73
|
# published.
|
74
|
+
# @!attribute [rw] exploit_release_date
|
75
|
+
# @return [::Google::Protobuf::Timestamp]
|
76
|
+
# Date the first publicly available exploit or PoC was released.
|
74
77
|
class Cve
|
75
78
|
include ::Google::Protobuf::MessageExts
|
76
79
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-security_center-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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: 2024-
|
11
|
+
date: 2024-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|