google-apis-securitycenter_v1beta1 0.57.0 → 0.58.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: b69079f9340afd3edabc583305c97e29c10a3d0cde296a0868add992f0c967ec
4
- data.tar.gz: 392e0483be4e8038da6380f33a7f6789ebc45d6458a4c780102aa52561b5e800
3
+ metadata.gz: b17fbd96892c692df039ac408461b09714d370d96e28559f84442e68e71bc531
4
+ data.tar.gz: 38c19f8fbda839dee6b53df17ce1b37332d85fd10c11f40585ddf776c126ab6d
5
5
  SHA512:
6
- metadata.gz: cc4567c86cb19eb19adab5c761ef03dda0949172e1833a3d6402caf221ee680b1ad7c5442654fb60aff9370622da88244f86d60764c5583db74ea148badb23f5
7
- data.tar.gz: a696a3e7a530ccbed8c19d9b3b3bc3231146b4f98ea100ec9716993511ff8ff69cd64b92cbc3396b8d4eecf35464470b0ab6f80f2315e96a02f34d5821aee00a
6
+ metadata.gz: b5fc1149a8195727e7ed458221be69bca37df3ff0767d1b973f7fa77487766e5744651f260d3afb25a5d62c2d52fd8c9df2c7530ca64c27769b245f9db458806
7
+ data.tar.gz: b00fa3f79e9b2d4b6655c93199ad1db2205054a0e70acbfa04cedcfbfc6d98c43291ed1ca467c4b51abe98ea907d4c085192bb2fefbd38e8fc52e21166e39e4d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-securitycenter_v1beta1
2
2
 
3
+ ### v0.58.0 (2023-08-06)
4
+
5
+ * Regenerated from discovery document revision 20230727
6
+
3
7
  ### v0.57.0 (2023-07-23)
4
8
 
5
9
  * Regenerated from discovery document revision 20230713
@@ -272,6 +272,69 @@ module Google
272
272
  end
273
273
  end
274
274
 
275
+ # An attack exposure contains the results of an attack path simulation run.
276
+ class AttackExposure
277
+ include Google::Apis::Core::Hashable
278
+
279
+ # The resource name of the attack path simulation result that contains the
280
+ # details regarding this attack exposure score. Example: organizations/123/
281
+ # attackExposureResults/456
282
+ # Corresponds to the JSON property `attackExposureResult`
283
+ # @return [String]
284
+ attr_accessor :attack_exposure_result
285
+
286
+ # The number of high value resources that are exposed as a result of this
287
+ # finding.
288
+ # Corresponds to the JSON property `exposedHighValueResourcesCount`
289
+ # @return [Fixnum]
290
+ attr_accessor :exposed_high_value_resources_count
291
+
292
+ # The number of high value resources that are exposed as a result of this
293
+ # finding.
294
+ # Corresponds to the JSON property `exposedLowValueResourcesCount`
295
+ # @return [Fixnum]
296
+ attr_accessor :exposed_low_value_resources_count
297
+
298
+ # The number of medium value resources that are exposed as a result of this
299
+ # finding.
300
+ # Corresponds to the JSON property `exposedMediumValueResourcesCount`
301
+ # @return [Fixnum]
302
+ attr_accessor :exposed_medium_value_resources_count
303
+
304
+ # The most recent time the attack exposure was updated on this finding.
305
+ # Corresponds to the JSON property `latestCalculationTime`
306
+ # @return [String]
307
+ attr_accessor :latest_calculation_time
308
+
309
+ # A number between 0 (inclusive) and infinity that represents how important this
310
+ # finding is to remediate. The higher the score, the more important it is to
311
+ # remediate.
312
+ # Corresponds to the JSON property `score`
313
+ # @return [Float]
314
+ attr_accessor :score
315
+
316
+ # What state this AttackExposure is in. This captures whether or not an attack
317
+ # exposure has been calculated or not.
318
+ # Corresponds to the JSON property `state`
319
+ # @return [String]
320
+ attr_accessor :state
321
+
322
+ def initialize(**args)
323
+ update!(**args)
324
+ end
325
+
326
+ # Update properties of this object
327
+ def update!(**args)
328
+ @attack_exposure_result = args[:attack_exposure_result] if args.key?(:attack_exposure_result)
329
+ @exposed_high_value_resources_count = args[:exposed_high_value_resources_count] if args.key?(:exposed_high_value_resources_count)
330
+ @exposed_low_value_resources_count = args[:exposed_low_value_resources_count] if args.key?(:exposed_low_value_resources_count)
331
+ @exposed_medium_value_resources_count = args[:exposed_medium_value_resources_count] if args.key?(:exposed_medium_value_resources_count)
332
+ @latest_calculation_time = args[:latest_calculation_time] if args.key?(:latest_calculation_time)
333
+ @score = args[:score] if args.key?(:score)
334
+ @state = args[:state] if args.key?(:state)
335
+ end
336
+ end
337
+
275
338
  # Specifies the audit configuration for a service. The configuration determines
276
339
  # which permission types are logged, and what identities, if any, are exempted
277
340
  # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -1087,6 +1150,11 @@ module Google
1087
1150
  # @return [Google::Apis::SecuritycenterV1beta1::Access]
1088
1151
  attr_accessor :access
1089
1152
 
1153
+ # An attack exposure contains the results of an attack path simulation run.
1154
+ # Corresponds to the JSON property `attackExposure`
1155
+ # @return [Google::Apis::SecuritycenterV1beta1::AttackExposure]
1156
+ attr_accessor :attack_exposure
1157
+
1090
1158
  # The canonical name of the finding. It's either "organizations/`organization_id`
1091
1159
  # /sources/`source_id`/findings/`finding_id`", "folders/`folder_id`/sources/`
1092
1160
  # source_id`/findings/`finding_id`" or "projects/`project_number`/sources/`
@@ -1340,6 +1408,7 @@ module Google
1340
1408
  # Update properties of this object
1341
1409
  def update!(**args)
1342
1410
  @access = args[:access] if args.key?(:access)
1411
+ @attack_exposure = args[:attack_exposure] if args.key?(:attack_exposure)
1343
1412
  @canonical_name = args[:canonical_name] if args.key?(:canonical_name)
1344
1413
  @category = args[:category] if args.key?(:category)
1345
1414
  @cloud_dlp_data_profile = args[:cloud_dlp_data_profile] if args.key?(:cloud_dlp_data_profile)
@@ -2033,6 +2102,84 @@ module Google
2033
2102
  end
2034
2103
  end
2035
2104
 
2105
+ # A resource value config is a mapping configuration of user's tag values to
2106
+ # resource values. Used by the attack path simulation.
2107
+ class GoogleCloudSecuritycenterV1ResourceValueConfig
2108
+ include Google::Apis::Core::Hashable
2109
+
2110
+ # Output only. Timestamp this resource value config was created.
2111
+ # Corresponds to the JSON property `createTime`
2112
+ # @return [String]
2113
+ attr_accessor :create_time
2114
+
2115
+ # Description of the resource value config.
2116
+ # Corresponds to the JSON property `description`
2117
+ # @return [String]
2118
+ attr_accessor :description
2119
+
2120
+ # Name for the resource value config
2121
+ # Corresponds to the JSON property `name`
2122
+ # @return [String]
2123
+ attr_accessor :name
2124
+
2125
+ # List of resource labels to search for, evaluated with AND. E.g. "
2126
+ # resource_labels_selector": `"key": "value", "env": "prod"` will match
2127
+ # resources with labels "key": "value" AND "env": "prod" https://cloud.google.
2128
+ # com/resource-manager/docs/creating-managing-labels
2129
+ # Corresponds to the JSON property `resourceLabelsSelector`
2130
+ # @return [Hash<String,String>]
2131
+ attr_accessor :resource_labels_selector
2132
+
2133
+ # Apply resource_value only to resources that match resource_type. resource_type
2134
+ # will be checked with "AND" of other resources. E.g. "storage.googleapis.com/
2135
+ # Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.
2136
+ # googleapis.com/Bucket" resources.
2137
+ # Corresponds to the JSON property `resourceType`
2138
+ # @return [String]
2139
+ attr_accessor :resource_type
2140
+
2141
+ # Required. Resource value level this expression represents
2142
+ # Corresponds to the JSON property `resourceValue`
2143
+ # @return [String]
2144
+ attr_accessor :resource_value
2145
+
2146
+ # Project or folder to scope this config to. For example, "project/456" would
2147
+ # apply this config only to resources in "project/456" scope will be checked
2148
+ # with "AND" of other resources.
2149
+ # Corresponds to the JSON property `scope`
2150
+ # @return [String]
2151
+ attr_accessor :scope
2152
+
2153
+ # Required. Tag values combined with AND to check against. Values in the form "
2154
+ # tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
2155
+ # https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
2156
+ # Corresponds to the JSON property `tagValues`
2157
+ # @return [Array<String>]
2158
+ attr_accessor :tag_values
2159
+
2160
+ # Output only. Timestamp this resource value config was last updated.
2161
+ # Corresponds to the JSON property `updateTime`
2162
+ # @return [String]
2163
+ attr_accessor :update_time
2164
+
2165
+ def initialize(**args)
2166
+ update!(**args)
2167
+ end
2168
+
2169
+ # Update properties of this object
2170
+ def update!(**args)
2171
+ @create_time = args[:create_time] if args.key?(:create_time)
2172
+ @description = args[:description] if args.key?(:description)
2173
+ @name = args[:name] if args.key?(:name)
2174
+ @resource_labels_selector = args[:resource_labels_selector] if args.key?(:resource_labels_selector)
2175
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
2176
+ @resource_value = args[:resource_value] if args.key?(:resource_value)
2177
+ @scope = args[:scope] if args.key?(:scope)
2178
+ @tag_values = args[:tag_values] if args.key?(:tag_values)
2179
+ @update_time = args[:update_time] if args.key?(:update_time)
2180
+ end
2181
+ end
2182
+
2036
2183
  # Response of asset discovery run
2037
2184
  class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
2038
2185
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SecuritycenterV1beta1
18
18
  # Version of the google-apis-securitycenter_v1beta1 gem
19
- GEM_VERSION = "0.57.0"
19
+ GEM_VERSION = "0.58.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 = "20230713"
25
+ REVISION = "20230727"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class AttackExposure
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class AuditConfig
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -274,6 +280,12 @@ module Google
274
280
  include Google::Apis::Core::JsonObjectSupport
275
281
  end
276
282
 
283
+ class GoogleCloudSecuritycenterV1ResourceValueConfig
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
277
289
  class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
278
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
291
 
@@ -634,6 +646,19 @@ module Google
634
646
  end
635
647
  end
636
648
 
649
+ class AttackExposure
650
+ # @private
651
+ class Representation < Google::Apis::Core::JsonRepresentation
652
+ property :attack_exposure_result, as: 'attackExposureResult'
653
+ property :exposed_high_value_resources_count, as: 'exposedHighValueResourcesCount'
654
+ property :exposed_low_value_resources_count, as: 'exposedLowValueResourcesCount'
655
+ property :exposed_medium_value_resources_count, as: 'exposedMediumValueResourcesCount'
656
+ property :latest_calculation_time, as: 'latestCalculationTime'
657
+ property :score, as: 'score'
658
+ property :state, as: 'state'
659
+ end
660
+ end
661
+
637
662
  class AuditConfig
638
663
  # @private
639
664
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -838,6 +863,8 @@ module Google
838
863
  class Representation < Google::Apis::Core::JsonRepresentation
839
864
  property :access, as: 'access', class: Google::Apis::SecuritycenterV1beta1::Access, decorator: Google::Apis::SecuritycenterV1beta1::Access::Representation
840
865
 
866
+ property :attack_exposure, as: 'attackExposure', class: Google::Apis::SecuritycenterV1beta1::AttackExposure, decorator: Google::Apis::SecuritycenterV1beta1::AttackExposure::Representation
867
+
841
868
  property :canonical_name, as: 'canonicalName'
842
869
  property :category, as: 'category'
843
870
  property :cloud_dlp_data_profile, as: 'cloudDlpDataProfile', class: Google::Apis::SecuritycenterV1beta1::CloudDlpDataProfile, decorator: Google::Apis::SecuritycenterV1beta1::CloudDlpDataProfile::Representation
@@ -1058,6 +1085,21 @@ module Google
1058
1085
  end
1059
1086
  end
1060
1087
 
1088
+ class GoogleCloudSecuritycenterV1ResourceValueConfig
1089
+ # @private
1090
+ class Representation < Google::Apis::Core::JsonRepresentation
1091
+ property :create_time, as: 'createTime'
1092
+ property :description, as: 'description'
1093
+ property :name, as: 'name'
1094
+ hash :resource_labels_selector, as: 'resourceLabelsSelector'
1095
+ property :resource_type, as: 'resourceType'
1096
+ property :resource_value, as: 'resourceValue'
1097
+ property :scope, as: 'scope'
1098
+ collection :tag_values, as: 'tagValues'
1099
+ property :update_time, as: 'updateTime'
1100
+ end
1101
+ end
1102
+
1061
1103
  class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
1062
1104
  # @private
1063
1105
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-securitycenter_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.57.0
4
+ version: 0.58.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-07-23 00:00:00.000000000 Z
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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta1/v0.57.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta1/v0.58.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []