google-cloud-security_center-v1p1beta1 0.1.1 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/google/cloud/security_center/v1p1beta1/security_center/client.rb +106 -80
- data/lib/google/cloud/security_center/v1p1beta1/security_center/operations.rb +17 -11
- data/lib/google/cloud/security_center/v1p1beta1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/notification_message_pb.rb +2 -0
- data/lib/google/cloud/securitycenter/v1p1beta1/resource_pb.rb +27 -0
- data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_pb.rb +0 -4
- data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_services_pb.rb +3 -4
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/asset.rb +25 -22
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/finding.rb +13 -13
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/notification_config.rb +6 -5
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/notification_message.rb +4 -1
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/organization_settings.rb +2 -2
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/resource.rb +48 -0
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/security_marks.rb +3 -3
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/securitycenter_service.rb +61 -45
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/source.rb +2 -2
- metadata +35 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -155,15 +155,15 @@ module Google
|
|
155
155
|
#
|
156
156
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
157
157
|
# Examples:
|
158
|
-
#
|
159
|
-
#
|
158
|
+
# `update_time = "2019-06-10T16:07:18-07:00"`
|
159
|
+
# `update_time = 1560208038000`
|
160
160
|
#
|
161
161
|
# * create_time: `=`, `>`, `<`, `>=`, `<=`
|
162
162
|
#
|
163
163
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
164
164
|
# Examples:
|
165
|
-
#
|
166
|
-
#
|
165
|
+
# `create_time = "2019-06-10T16:07:18-07:00"`
|
166
|
+
# `create_time = 1560208038000`
|
167
167
|
#
|
168
168
|
# * iam_policy.policy_blob: `=`, `:`
|
169
169
|
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
@@ -178,6 +178,12 @@ module Google
|
|
178
178
|
# * security_center_properties.resource_owners: `=`, `:`
|
179
179
|
#
|
180
180
|
# For example, `resource_properties.size = 100` is a valid filter string.
|
181
|
+
#
|
182
|
+
# Use a partial match on the empty string to filter based on a property
|
183
|
+
# existing: `resource_properties.my_property : ""`
|
184
|
+
#
|
185
|
+
# Use a negated partial match on the empty string to filter based on a
|
186
|
+
# property not existing: `-resource_properties.my_property : ""`
|
181
187
|
# @!attribute [rw] group_by
|
182
188
|
# @return [::String]
|
183
189
|
# Required. Expression that defines what assets fields to use for grouping.
|
@@ -233,11 +239,6 @@ module Google
|
|
233
239
|
# to assets existing at the supplied time and their values are those at that
|
234
240
|
# specific time. Absence of this field will default to the API's version of
|
235
241
|
# NOW.
|
236
|
-
# @!attribute [rw] having
|
237
|
-
# @return [::String]
|
238
|
-
# Filter that specifies what fields to further filter on *after* the query
|
239
|
-
# filter has been executed. Currently only `state_change` is supported and
|
240
|
-
# requires compare_duration to be specified.
|
241
242
|
# @!attribute [rw] page_token
|
242
243
|
# @return [::String]
|
243
244
|
# The value returned by the last `GroupAssetsResponse`; indicates
|
@@ -318,13 +319,19 @@ module Google
|
|
318
319
|
#
|
319
320
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
320
321
|
# Examples:
|
321
|
-
#
|
322
|
-
#
|
322
|
+
# `event_time = "2019-06-10T16:07:18-07:00"`
|
323
|
+
# `event_time = 1560208038000`
|
323
324
|
#
|
324
325
|
# * security_marks.marks: `=`, `:`
|
325
326
|
# * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
326
327
|
#
|
327
328
|
# For example, `source_properties.size = 100` is a valid filter string.
|
329
|
+
#
|
330
|
+
# Use a partial match on the empty string to filter based on a property
|
331
|
+
# existing: `source_properties.my_property : ""`
|
332
|
+
#
|
333
|
+
# Use a negated partial match on the empty string to filter based on a
|
334
|
+
# property not existing: `-source_properties.my_property : ""`
|
328
335
|
# @!attribute [rw] group_by
|
329
336
|
# @return [::String]
|
330
337
|
# Required. Expression that defines what assets fields to use for grouping
|
@@ -362,12 +369,18 @@ module Google
|
|
362
369
|
#
|
363
370
|
# Possible "state_change" values when compare_duration is specified:
|
364
371
|
#
|
365
|
-
# * "CHANGED": indicates that the finding was present
|
366
|
-
# compare_duration, but changed its
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
372
|
+
# * "CHANGED": indicates that the finding was present and matched the given
|
373
|
+
# filter at the start of compare_duration, but changed its
|
374
|
+
# state at read_time.
|
375
|
+
# * "UNCHANGED": indicates that the finding was present and matched the given
|
376
|
+
# filter at the start of compare_duration and did not change
|
377
|
+
# state at read_time.
|
378
|
+
# * "ADDED": indicates that the finding did not match the given filter or
|
379
|
+
# was not present at the start of compare_duration, but was
|
380
|
+
# present at read_time.
|
381
|
+
# * "REMOVED": indicates that the finding was present and matched the
|
382
|
+
# filter at the start of compare_duration, but did not match
|
383
|
+
# the filter at read_time.
|
371
384
|
#
|
372
385
|
# If compare_duration is not specified, then the only possible state_change
|
373
386
|
# is "UNUSED", which will be the state_change set for all findings present
|
@@ -375,11 +388,6 @@ module Google
|
|
375
388
|
#
|
376
389
|
# If this field is set then `state_change` must be a specified field in
|
377
390
|
# `group_by`.
|
378
|
-
# @!attribute [rw] having
|
379
|
-
# @return [::String]
|
380
|
-
# Filter that specifies what fields to further filter on *after* the query
|
381
|
-
# filter has been executed. Currently only `finding.state` and `state_change`
|
382
|
-
# are supported and requires compare_duration to be specified.
|
383
391
|
# @!attribute [rw] page_token
|
384
392
|
# @return [::String]
|
385
393
|
# The value returned by the last `GroupFindingsResponse`; indicates
|
@@ -540,15 +548,15 @@ module Google
|
|
540
548
|
#
|
541
549
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
542
550
|
# Examples:
|
543
|
-
#
|
544
|
-
#
|
551
|
+
# `update_time = "2019-06-10T16:07:18-07:00"`
|
552
|
+
# `update_time = 1560208038000`
|
545
553
|
#
|
546
554
|
# * create_time: `=`, `>`, `<`, `>=`, `<=`
|
547
555
|
#
|
548
556
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
549
557
|
# Examples:
|
550
|
-
#
|
551
|
-
#
|
558
|
+
# `create_time = "2019-06-10T16:07:18-07:00"`
|
559
|
+
# `create_time = 1560208038000`
|
552
560
|
#
|
553
561
|
# * iam_policy.policy_blob: `=`, `:`
|
554
562
|
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
@@ -563,6 +571,12 @@ module Google
|
|
563
571
|
# * security_center_properties.resource_owners: `=`, `:`
|
564
572
|
#
|
565
573
|
# For example, `resource_properties.size = 100` is a valid filter string.
|
574
|
+
#
|
575
|
+
# Use a partial match on the empty string to filter based on a property
|
576
|
+
# existing: `resource_properties.my_property : ""`
|
577
|
+
#
|
578
|
+
# Use a negated partial match on the empty string to filter based on a
|
579
|
+
# property not existing: `-resource_properties.my_property : ""`
|
566
580
|
# @!attribute [rw] order_by
|
567
581
|
# @return [::String]
|
568
582
|
# Expression that defines what fields and order to use for sorting. The
|
@@ -618,11 +632,6 @@ module Google
|
|
618
632
|
# If compare_duration is not specified, then the only possible state_change
|
619
633
|
# is "UNUSED", which will be the state_change set for all assets present at
|
620
634
|
# read_time.
|
621
|
-
# @!attribute [rw] having
|
622
|
-
# @return [::String]
|
623
|
-
# Filter that specifies what fields to further filter on *after* the query
|
624
|
-
# filter has been executed. Currently only `state_change` is supported and
|
625
|
-
# requires compare_duration to be specified.
|
626
635
|
# @!attribute [rw] field_mask
|
627
636
|
# @return [::Google::Protobuf::FieldMask]
|
628
637
|
# Optional.
|
@@ -739,13 +748,19 @@ module Google
|
|
739
748
|
#
|
740
749
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
741
750
|
# Examples:
|
742
|
-
#
|
743
|
-
#
|
751
|
+
# `event_time = "2019-06-10T16:07:18-07:00"`
|
752
|
+
# `event_time = 1560208038000`
|
744
753
|
#
|
745
754
|
# security_marks.marks: `=`, `:`
|
746
755
|
# source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
747
756
|
#
|
748
757
|
# For example, `source_properties.size = 100` is a valid filter string.
|
758
|
+
#
|
759
|
+
# Use a partial match on the empty string to filter based on a property
|
760
|
+
# existing: `source_properties.my_property : ""`
|
761
|
+
#
|
762
|
+
# Use a negated partial match on the empty string to filter based on a
|
763
|
+
# property not existing: `-source_properties.my_property : ""`
|
749
764
|
# @!attribute [rw] order_by
|
750
765
|
# @return [::String]
|
751
766
|
# Expression that defines what fields and order to use for sorting. The
|
@@ -788,21 +803,22 @@ module Google
|
|
788
803
|
#
|
789
804
|
# Possible "state_change" values when compare_duration is specified:
|
790
805
|
#
|
791
|
-
# * "CHANGED": indicates that the finding was present
|
792
|
-
# compare_duration, but changed its
|
793
|
-
#
|
794
|
-
#
|
795
|
-
#
|
796
|
-
#
|
806
|
+
# * "CHANGED": indicates that the finding was present and matched the given
|
807
|
+
# filter at the start of compare_duration, but changed its
|
808
|
+
# state at read_time.
|
809
|
+
# * "UNCHANGED": indicates that the finding was present and matched the given
|
810
|
+
# filter at the start of compare_duration and did not change
|
811
|
+
# state at read_time.
|
812
|
+
# * "ADDED": indicates that the finding did not match the given filter or
|
813
|
+
# was not present at the start of compare_duration, but was
|
814
|
+
# present at read_time.
|
815
|
+
# * "REMOVED": indicates that the finding was present and matched the
|
816
|
+
# filter at the start of compare_duration, but did not match
|
817
|
+
# the filter at read_time.
|
797
818
|
#
|
798
819
|
# If compare_duration is not specified, then the only possible state_change
|
799
820
|
# is "UNUSED", which will be the state_change set for all findings present at
|
800
821
|
# read_time.
|
801
|
-
# @!attribute [rw] having
|
802
|
-
# @return [::String]
|
803
|
-
# Filter that specifies what fields to further filter on *after* the query
|
804
|
-
# filter has been executed. Currently only `finding.state` and `state_change`
|
805
|
-
# are supported and requires compare_duration to be specified.
|
806
822
|
# @!attribute [rw] field_mask
|
807
823
|
# @return [::Google::Protobuf::FieldMask]
|
808
824
|
# Optional.
|
@@ -854,7 +870,7 @@ module Google
|
|
854
870
|
include ::Google::Protobuf::MessageExts
|
855
871
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
856
872
|
|
857
|
-
# Information related to the Google Cloud
|
873
|
+
# Information related to the Google Cloud resource that is
|
858
874
|
# associated with this finding.
|
859
875
|
# @!attribute [rw] name
|
860
876
|
# @return [::String]
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module SecurityCenter
|
23
23
|
module V1p1beta1
|
24
|
-
#
|
24
|
+
# Security Command Center finding source. A finding source
|
25
25
|
# is an entity or a mechanism that can produce a finding. A source is like a
|
26
26
|
# container of findings that come from the same scanner, logger, monitor, etc.
|
27
27
|
# @!attribute [rw] name
|
@@ -41,7 +41,7 @@ module Google
|
|
41
41
|
# @return [::String]
|
42
42
|
# The description of the source (max of 1024 characters).
|
43
43
|
# Example:
|
44
|
-
# "
|
44
|
+
# "Web Security Scanner is a web security scanner for common
|
45
45
|
# vulnerabilities in App Engine applications. It can automatically
|
46
46
|
# scan and detect four common vulnerabilities, including cross-site-scripting
|
47
47
|
# (XSS), Flash injection, mixed content (HTTP in HTTPS), and
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-security_center-v1p1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -78,14 +78,42 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '5.
|
81
|
+
version: '5.14'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '5.
|
88
|
+
version: '5.14'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: minitest-focus
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1.1'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.1'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: minitest-rg
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '5.2'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '5.2'
|
89
117
|
- !ruby/object:Gem::Dependency
|
90
118
|
name: rake
|
91
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,7 +182,6 @@ files:
|
|
154
182
|
- LICENSE.md
|
155
183
|
- README.md
|
156
184
|
- lib/google-cloud-security_center-v1p1beta1.rb
|
157
|
-
- lib/google/cloud/common_resources_pb.rb
|
158
185
|
- lib/google/cloud/security_center/v1p1beta1.rb
|
159
186
|
- lib/google/cloud/security_center/v1p1beta1/security_center.rb
|
160
187
|
- lib/google/cloud/security_center/v1p1beta1/security_center/client.rb
|
@@ -167,6 +194,7 @@ files:
|
|
167
194
|
- lib/google/cloud/securitycenter/v1p1beta1/notification_config_pb.rb
|
168
195
|
- lib/google/cloud/securitycenter/v1p1beta1/notification_message_pb.rb
|
169
196
|
- lib/google/cloud/securitycenter/v1p1beta1/organization_settings_pb.rb
|
197
|
+
- lib/google/cloud/securitycenter/v1p1beta1/resource_pb.rb
|
170
198
|
- lib/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response_pb.rb
|
171
199
|
- lib/google/cloud/securitycenter/v1p1beta1/security_marks_pb.rb
|
172
200
|
- lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_pb.rb
|
@@ -180,6 +208,7 @@ files:
|
|
180
208
|
- proto_docs/google/cloud/securitycenter/v1p1beta1/notification_config.rb
|
181
209
|
- proto_docs/google/cloud/securitycenter/v1p1beta1/notification_message.rb
|
182
210
|
- proto_docs/google/cloud/securitycenter/v1p1beta1/organization_settings.rb
|
211
|
+
- proto_docs/google/cloud/securitycenter/v1p1beta1/resource.rb
|
183
212
|
- proto_docs/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.rb
|
184
213
|
- proto_docs/google/cloud/securitycenter/v1p1beta1/security_marks.rb
|
185
214
|
- proto_docs/google/cloud/securitycenter/v1p1beta1/securitycenter_service.rb
|
@@ -215,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
244
|
- !ruby/object:Gem::Version
|
216
245
|
version: '0'
|
217
246
|
requirements: []
|
218
|
-
rubygems_version: 3.
|
247
|
+
rubygems_version: 3.1.3
|
219
248
|
signing_key:
|
220
249
|
specification_version: 4
|
221
250
|
summary: API Client library for the Cloud Security Command Center V1p1beta1 API
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/common_resources.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/resource_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
module Google
|
13
|
-
module Cloud
|
14
|
-
end
|
15
|
-
end
|