google-apis-securitycenter_v1beta2 0.52.0 → 0.53.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d32b46d647c4e7df2090d65a6c16eefba0892fbc560307965ac9c0555ff6a785
|
4
|
+
data.tar.gz: 8bcd1a96384b1bbd1318c6a95e9f6b8a9161c6195508583d05042b9627449958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebf89e8161648708621cc3d32d72a1cb54f2284f7ad7b9fc7a4d7d1058be18d24fe195112fe2515cb4f48b15338a9a46168f6b5135dd2e04a9182109b0370f19
|
7
|
+
data.tar.gz: 678a3190ce56cbaabfa8ec15605b33e49873e2a69613f030b9a266b48844e59e010b6ea292be926b641579e0f1a249c5c23b5b8a653b52b91e632629e799396a
|
data/CHANGELOG.md
CHANGED
@@ -186,6 +186,69 @@ module Google
|
|
186
186
|
end
|
187
187
|
end
|
188
188
|
|
189
|
+
# An attack exposure contains the results of an attack path simulation run.
|
190
|
+
class AttackExposure
|
191
|
+
include Google::Apis::Core::Hashable
|
192
|
+
|
193
|
+
# The resource name of the attack path simulation result that contains the
|
194
|
+
# details regarding this attack exposure score. Example: organizations/123/
|
195
|
+
# attackExposureResults/456
|
196
|
+
# Corresponds to the JSON property `attackExposureResult`
|
197
|
+
# @return [String]
|
198
|
+
attr_accessor :attack_exposure_result
|
199
|
+
|
200
|
+
# The number of high value resources that are exposed as a result of this
|
201
|
+
# finding.
|
202
|
+
# Corresponds to the JSON property `exposedHighValueResourcesCount`
|
203
|
+
# @return [Fixnum]
|
204
|
+
attr_accessor :exposed_high_value_resources_count
|
205
|
+
|
206
|
+
# The number of high value resources that are exposed as a result of this
|
207
|
+
# finding.
|
208
|
+
# Corresponds to the JSON property `exposedLowValueResourcesCount`
|
209
|
+
# @return [Fixnum]
|
210
|
+
attr_accessor :exposed_low_value_resources_count
|
211
|
+
|
212
|
+
# The number of medium value resources that are exposed as a result of this
|
213
|
+
# finding.
|
214
|
+
# Corresponds to the JSON property `exposedMediumValueResourcesCount`
|
215
|
+
# @return [Fixnum]
|
216
|
+
attr_accessor :exposed_medium_value_resources_count
|
217
|
+
|
218
|
+
# The most recent time the attack exposure was updated on this finding.
|
219
|
+
# Corresponds to the JSON property `latestCalculationTime`
|
220
|
+
# @return [String]
|
221
|
+
attr_accessor :latest_calculation_time
|
222
|
+
|
223
|
+
# A number between 0 (inclusive) and infinity that represents how important this
|
224
|
+
# finding is to remediate. The higher the score, the more important it is to
|
225
|
+
# remediate.
|
226
|
+
# Corresponds to the JSON property `score`
|
227
|
+
# @return [Float]
|
228
|
+
attr_accessor :score
|
229
|
+
|
230
|
+
# What state this AttackExposure is in. This captures whether or not an attack
|
231
|
+
# exposure has been calculated or not.
|
232
|
+
# Corresponds to the JSON property `state`
|
233
|
+
# @return [String]
|
234
|
+
attr_accessor :state
|
235
|
+
|
236
|
+
def initialize(**args)
|
237
|
+
update!(**args)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Update properties of this object
|
241
|
+
def update!(**args)
|
242
|
+
@attack_exposure_result = args[:attack_exposure_result] if args.key?(:attack_exposure_result)
|
243
|
+
@exposed_high_value_resources_count = args[:exposed_high_value_resources_count] if args.key?(:exposed_high_value_resources_count)
|
244
|
+
@exposed_low_value_resources_count = args[:exposed_low_value_resources_count] if args.key?(:exposed_low_value_resources_count)
|
245
|
+
@exposed_medium_value_resources_count = args[:exposed_medium_value_resources_count] if args.key?(:exposed_medium_value_resources_count)
|
246
|
+
@latest_calculation_time = args[:latest_calculation_time] if args.key?(:latest_calculation_time)
|
247
|
+
@score = args[:score] if args.key?(:score)
|
248
|
+
@state = args[:state] if args.key?(:state)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
189
252
|
# The [data profile](https://cloud.google.com/dlp/docs/data-profiles) associated
|
190
253
|
# with the finding.
|
191
254
|
class CloudDlpDataProfile
|
@@ -976,6 +1039,11 @@ module Google
|
|
976
1039
|
# @return [Google::Apis::SecuritycenterV1beta2::Access]
|
977
1040
|
attr_accessor :access
|
978
1041
|
|
1042
|
+
# An attack exposure contains the results of an attack path simulation run.
|
1043
|
+
# Corresponds to the JSON property `attackExposure`
|
1044
|
+
# @return [Google::Apis::SecuritycenterV1beta2::AttackExposure]
|
1045
|
+
attr_accessor :attack_exposure
|
1046
|
+
|
979
1047
|
# The canonical name of the finding. It's either "organizations/`organization_id`
|
980
1048
|
# /sources/`source_id`/findings/`finding_id`", "folders/`folder_id`/sources/`
|
981
1049
|
# source_id`/findings/`finding_id`" or "projects/`project_number`/sources/`
|
@@ -1229,6 +1297,7 @@ module Google
|
|
1229
1297
|
# Update properties of this object
|
1230
1298
|
def update!(**args)
|
1231
1299
|
@access = args[:access] if args.key?(:access)
|
1300
|
+
@attack_exposure = args[:attack_exposure] if args.key?(:attack_exposure)
|
1232
1301
|
@canonical_name = args[:canonical_name] if args.key?(:canonical_name)
|
1233
1302
|
@category = args[:category] if args.key?(:category)
|
1234
1303
|
@cloud_dlp_data_profile = args[:cloud_dlp_data_profile] if args.key?(:cloud_dlp_data_profile)
|
@@ -1875,6 +1944,84 @@ module Google
|
|
1875
1944
|
end
|
1876
1945
|
end
|
1877
1946
|
|
1947
|
+
# A resource value config is a mapping configuration of user's tag values to
|
1948
|
+
# resource values. Used by the attack path simulation.
|
1949
|
+
class GoogleCloudSecuritycenterV1ResourceValueConfig
|
1950
|
+
include Google::Apis::Core::Hashable
|
1951
|
+
|
1952
|
+
# Output only. Timestamp this resource value config was created.
|
1953
|
+
# Corresponds to the JSON property `createTime`
|
1954
|
+
# @return [String]
|
1955
|
+
attr_accessor :create_time
|
1956
|
+
|
1957
|
+
# Description of the resource value config.
|
1958
|
+
# Corresponds to the JSON property `description`
|
1959
|
+
# @return [String]
|
1960
|
+
attr_accessor :description
|
1961
|
+
|
1962
|
+
# Name for the resource value config
|
1963
|
+
# Corresponds to the JSON property `name`
|
1964
|
+
# @return [String]
|
1965
|
+
attr_accessor :name
|
1966
|
+
|
1967
|
+
# List of resource labels to search for, evaluated with AND. E.g. "
|
1968
|
+
# resource_labels_selector": `"key": "value", "env": "prod"` will match
|
1969
|
+
# resources with labels "key": "value" AND "env": "prod" https://cloud.google.
|
1970
|
+
# com/resource-manager/docs/creating-managing-labels
|
1971
|
+
# Corresponds to the JSON property `resourceLabelsSelector`
|
1972
|
+
# @return [Hash<String,String>]
|
1973
|
+
attr_accessor :resource_labels_selector
|
1974
|
+
|
1975
|
+
# Apply resource_value only to resources that match resource_type. resource_type
|
1976
|
+
# will be checked with "AND" of other resources. E.g. "storage.googleapis.com/
|
1977
|
+
# Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.
|
1978
|
+
# googleapis.com/Bucket" resources.
|
1979
|
+
# Corresponds to the JSON property `resourceType`
|
1980
|
+
# @return [String]
|
1981
|
+
attr_accessor :resource_type
|
1982
|
+
|
1983
|
+
# Required. Resource value level this expression represents
|
1984
|
+
# Corresponds to the JSON property `resourceValue`
|
1985
|
+
# @return [String]
|
1986
|
+
attr_accessor :resource_value
|
1987
|
+
|
1988
|
+
# Project or folder to scope this config to. For example, "project/456" would
|
1989
|
+
# apply this config only to resources in "project/456" scope will be checked
|
1990
|
+
# with "AND" of other resources.
|
1991
|
+
# Corresponds to the JSON property `scope`
|
1992
|
+
# @return [String]
|
1993
|
+
attr_accessor :scope
|
1994
|
+
|
1995
|
+
# Required. Tag values combined with AND to check against. Values in the form "
|
1996
|
+
# tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
|
1997
|
+
# https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
|
1998
|
+
# Corresponds to the JSON property `tagValues`
|
1999
|
+
# @return [Array<String>]
|
2000
|
+
attr_accessor :tag_values
|
2001
|
+
|
2002
|
+
# Output only. Timestamp this resource value config was last updated.
|
2003
|
+
# Corresponds to the JSON property `updateTime`
|
2004
|
+
# @return [String]
|
2005
|
+
attr_accessor :update_time
|
2006
|
+
|
2007
|
+
def initialize(**args)
|
2008
|
+
update!(**args)
|
2009
|
+
end
|
2010
|
+
|
2011
|
+
# Update properties of this object
|
2012
|
+
def update!(**args)
|
2013
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2014
|
+
@description = args[:description] if args.key?(:description)
|
2015
|
+
@name = args[:name] if args.key?(:name)
|
2016
|
+
@resource_labels_selector = args[:resource_labels_selector] if args.key?(:resource_labels_selector)
|
2017
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
2018
|
+
@resource_value = args[:resource_value] if args.key?(:resource_value)
|
2019
|
+
@scope = args[:scope] if args.key?(:scope)
|
2020
|
+
@tag_values = args[:tag_values] if args.key?(:tag_values)
|
2021
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2022
|
+
end
|
2023
|
+
end
|
2024
|
+
|
1878
2025
|
# Response of asset discovery run
|
1879
2026
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
1880
2027
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SecuritycenterV1beta2
|
18
18
|
# Version of the google-apis-securitycenter_v1beta2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.53.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230727"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class AttackExposure
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class CloudDlpDataProfile
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -244,6 +250,12 @@ module Google
|
|
244
250
|
include Google::Apis::Core::JsonObjectSupport
|
245
251
|
end
|
246
252
|
|
253
|
+
class GoogleCloudSecuritycenterV1ResourceValueConfig
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
247
259
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
248
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
261
|
|
@@ -486,6 +498,19 @@ module Google
|
|
486
498
|
end
|
487
499
|
end
|
488
500
|
|
501
|
+
class AttackExposure
|
502
|
+
# @private
|
503
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
504
|
+
property :attack_exposure_result, as: 'attackExposureResult'
|
505
|
+
property :exposed_high_value_resources_count, as: 'exposedHighValueResourcesCount'
|
506
|
+
property :exposed_low_value_resources_count, as: 'exposedLowValueResourcesCount'
|
507
|
+
property :exposed_medium_value_resources_count, as: 'exposedMediumValueResourcesCount'
|
508
|
+
property :latest_calculation_time, as: 'latestCalculationTime'
|
509
|
+
property :score, as: 'score'
|
510
|
+
property :state, as: 'state'
|
511
|
+
end
|
512
|
+
end
|
513
|
+
|
489
514
|
class CloudDlpDataProfile
|
490
515
|
# @private
|
491
516
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -691,6 +716,8 @@ module Google
|
|
691
716
|
class Representation < Google::Apis::Core::JsonRepresentation
|
692
717
|
property :access, as: 'access', class: Google::Apis::SecuritycenterV1beta2::Access, decorator: Google::Apis::SecuritycenterV1beta2::Access::Representation
|
693
718
|
|
719
|
+
property :attack_exposure, as: 'attackExposure', class: Google::Apis::SecuritycenterV1beta2::AttackExposure, decorator: Google::Apis::SecuritycenterV1beta2::AttackExposure::Representation
|
720
|
+
|
694
721
|
property :canonical_name, as: 'canonicalName'
|
695
722
|
property :category, as: 'category'
|
696
723
|
property :cloud_dlp_data_profile, as: 'cloudDlpDataProfile', class: Google::Apis::SecuritycenterV1beta2::CloudDlpDataProfile, decorator: Google::Apis::SecuritycenterV1beta2::CloudDlpDataProfile::Representation
|
@@ -896,6 +923,21 @@ module Google
|
|
896
923
|
end
|
897
924
|
end
|
898
925
|
|
926
|
+
class GoogleCloudSecuritycenterV1ResourceValueConfig
|
927
|
+
# @private
|
928
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
929
|
+
property :create_time, as: 'createTime'
|
930
|
+
property :description, as: 'description'
|
931
|
+
property :name, as: 'name'
|
932
|
+
hash :resource_labels_selector, as: 'resourceLabelsSelector'
|
933
|
+
property :resource_type, as: 'resourceType'
|
934
|
+
property :resource_value, as: 'resourceValue'
|
935
|
+
property :scope, as: 'scope'
|
936
|
+
collection :tag_values, as: 'tagValues'
|
937
|
+
property :update_time, as: 'updateTime'
|
938
|
+
end
|
939
|
+
end
|
940
|
+
|
899
941
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
900
942
|
# @private
|
901
943
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-securitycenter_v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.53.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: 2023-
|
11
|
+
date: 2023-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.53.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|