google-apis-securitycenter_v1beta2 0.37.0 → 0.39.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: beb3195bbf2910f2318356f3ac2cc468fae7a57bf7b49464dbbba053656d6456
4
- data.tar.gz: e5e64dff121f29b2945b40e1bc9b18ad87a7775c56d724c88093c8edda835359
3
+ metadata.gz: 1c4801dfd57bdb0872f4ecca20e7c5eaa6ed62e42a856e2b6fa9b1cfa2fa025f
4
+ data.tar.gz: 4ff41360bf2d4cd2e54a1ef105938dfeba380401d15f8315ec9ae9c466a6c9b0
5
5
  SHA512:
6
- metadata.gz: 7ab5d590d1bb66034eb555d251bf9a5e1af579993b679e34e2dd90f6b152c3c5c17b05c05c5c97015526d2a3098688ceb25791dadec6b15d9996431b81b49f5a
7
- data.tar.gz: 7ca4532e396bb3fcc612cfcf17a3c42732c3bc3f4106aa9117470e5de3326d1163f849903d7627dfb3dc7570665d2b2c6a4a6adf766102ac4d438b94bd1e0a24
6
+ metadata.gz: 6c38f16c79d3a701850b6d0533ab845c3f5516a94cdc2c631a4e6d29c3e15973a18d0ae668f1a87d535d6ec272f3ea934d0f2916f004004bf0eaddf30949c6f4
7
+ data.tar.gz: 67092f02139ff0eb7916ed8996a8f4eb0f635291edd463c979c3c67e23c891030627492ac19c9a8f4cef0ad38b6c4ee1f9fd30cab94a5240c32823d1065aa5fa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-securitycenter_v1beta2
2
2
 
3
+ ### v0.39.0 (2022-11-04)
4
+
5
+ * Regenerated from discovery document revision 20221027
6
+
7
+ ### v0.38.0 (2022-10-19)
8
+
9
+ * Regenerated from discovery document revision 20221014
10
+ * Regenerated using generator version 0.11.0
11
+
3
12
  ### v0.37.0 (2022-09-29)
4
13
 
5
14
  * Regenerated from discovery document revision 20220921
@@ -95,9 +95,9 @@ module Google
95
95
  # instance, this may be the system user name if the finding is VM-related, or
96
96
  # this may be some type of application login user name, depending on the type of
97
97
  # finding.
98
- # Corresponds to the JSON property `username`
98
+ # Corresponds to the JSON property `userName`
99
99
  # @return [String]
100
- attr_accessor :username
100
+ attr_accessor :user_name
101
101
 
102
102
  def initialize(**args)
103
103
  update!(**args)
@@ -114,7 +114,7 @@ module Google
114
114
  @service_account_key_name = args[:service_account_key_name] if args.key?(:service_account_key_name)
115
115
  @service_name = args[:service_name] if args.key?(:service_name)
116
116
  @user_agent_family = args[:user_agent_family] if args.key?(:user_agent_family)
117
- @username = args[:username] if args.key?(:username)
117
+ @user_name = args[:user_name] if args.key?(:user_name)
118
118
  end
119
119
  end
120
120
 
@@ -176,6 +176,32 @@ module Google
176
176
  end
177
177
  end
178
178
 
179
+ # A finding that is associated with this node in the exposure path.
180
+ class AssociatedFinding
181
+ include Google::Apis::Core::Hashable
182
+
183
+ # Canonical name of the associated findings. Example: organizations/123/sources/
184
+ # 456/findings/789
185
+ # Corresponds to the JSON property `canonicalFindingName`
186
+ # @return [String]
187
+ attr_accessor :canonical_finding_name
188
+
189
+ # The additional taxonomy group within findings from a given source.
190
+ # Corresponds to the JSON property `findingCategory`
191
+ # @return [String]
192
+ attr_accessor :finding_category
193
+
194
+ def initialize(**args)
195
+ update!(**args)
196
+ end
197
+
198
+ # Update properties of this object
199
+ def update!(**args)
200
+ @canonical_finding_name = args[:canonical_finding_name] if args.key?(:canonical_finding_name)
201
+ @finding_category = args[:finding_category] if args.key?(:finding_category)
202
+ end
203
+ end
204
+
179
205
  # Contains compliance information about a security standard indicating unmet
180
206
  # recommendations.
181
207
  class Compliance
@@ -632,6 +658,32 @@ module Google
632
658
  end
633
659
  end
634
660
 
661
+ # Represents a connection between a source node and a destination node in this
662
+ # exposure path.
663
+ class Edge
664
+ include Google::Apis::Core::Hashable
665
+
666
+ # This is the resource name of the destination node.
667
+ # Corresponds to the JSON property `destination`
668
+ # @return [String]
669
+ attr_accessor :destination
670
+
671
+ # This is the resource name of the source node.
672
+ # Corresponds to the JSON property `source`
673
+ # @return [String]
674
+ attr_accessor :source
675
+
676
+ def initialize(**args)
677
+ update!(**args)
678
+ end
679
+
680
+ # Update properties of this object
681
+ def update!(**args)
682
+ @destination = args[:destination] if args.key?(:destination)
683
+ @source = args[:source] if args.key?(:source)
684
+ end
685
+ end
686
+
635
687
  # EnvironmentVariable is a name-value pair to store environment variables for
636
688
  # Process.
637
689
  class EnvironmentVariable
@@ -1263,12 +1315,51 @@ module Google
1263
1315
  class GoogleCloudSecuritycenterV1ExposedResource
1264
1316
  include Google::Apis::Core::Hashable
1265
1317
 
1318
+ # Human readable name of the resource that is exposed.
1319
+ # Corresponds to the JSON property `displayName`
1320
+ # @return [String]
1321
+ attr_accessor :display_name
1322
+
1323
+ # The ways in which this resource is exposed. Examples: Read, Write
1324
+ # Corresponds to the JSON property `methods`
1325
+ # @return [Array<String>]
1326
+ attr_accessor :methods_prop
1327
+
1328
+ # Exposed Resource Name e.g.: `organizations/123/attackExposureResults/456/
1329
+ # exposedResources/789`
1330
+ # Corresponds to the JSON property `name`
1331
+ # @return [String]
1332
+ attr_accessor :name
1333
+
1334
+ # The name of the resource that is exposed. See: https://cloud.google.com/apis/
1335
+ # design/resource_names#full_resource_name
1336
+ # Corresponds to the JSON property `resource`
1337
+ # @return [String]
1338
+ attr_accessor :resource
1339
+
1340
+ # The resource type of the exposed resource. See: https://cloud.google.com/asset-
1341
+ # inventory/docs/supported-asset-types
1342
+ # Corresponds to the JSON property `resourceType`
1343
+ # @return [String]
1344
+ attr_accessor :resource_type
1345
+
1346
+ # How valuable this resource is.
1347
+ # Corresponds to the JSON property `resourceValue`
1348
+ # @return [String]
1349
+ attr_accessor :resource_value
1350
+
1266
1351
  def initialize(**args)
1267
1352
  update!(**args)
1268
1353
  end
1269
1354
 
1270
1355
  # Update properties of this object
1271
1356
  def update!(**args)
1357
+ @display_name = args[:display_name] if args.key?(:display_name)
1358
+ @methods_prop = args[:methods_prop] if args.key?(:methods_prop)
1359
+ @name = args[:name] if args.key?(:name)
1360
+ @resource = args[:resource] if args.key?(:resource)
1361
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1362
+ @resource_value = args[:resource_value] if args.key?(:resource_value)
1272
1363
  end
1273
1364
  end
1274
1365
 
@@ -1276,12 +1367,37 @@ module Google
1276
1367
  class GoogleCloudSecuritycenterV1ExposurePath
1277
1368
  include Google::Apis::Core::Hashable
1278
1369
 
1370
+ # A list of the edges between nodes in this exposure path.
1371
+ # Corresponds to the JSON property `edges`
1372
+ # @return [Array<Google::Apis::SecuritycenterV1beta2::Edge>]
1373
+ attr_accessor :edges
1374
+
1375
+ # A resource that is exposed as a result of a finding.
1376
+ # Corresponds to the JSON property `exposedResource`
1377
+ # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExposedResource]
1378
+ attr_accessor :exposed_resource
1379
+
1380
+ # Exposure Path Name e.g.: `organizations/123/attackExposureResults/456/
1381
+ # exposurePaths/789`
1382
+ # Corresponds to the JSON property `name`
1383
+ # @return [String]
1384
+ attr_accessor :name
1385
+
1386
+ # A list of nodes that exist in this exposure path.
1387
+ # Corresponds to the JSON property `pathNodes`
1388
+ # @return [Array<Google::Apis::SecuritycenterV1beta2::PathNode>]
1389
+ attr_accessor :path_nodes
1390
+
1279
1391
  def initialize(**args)
1280
1392
  update!(**args)
1281
1393
  end
1282
1394
 
1283
1395
  # Update properties of this object
1284
1396
  def update!(**args)
1397
+ @edges = args[:edges] if args.key?(:edges)
1398
+ @exposed_resource = args[:exposed_resource] if args.key?(:exposed_resource)
1399
+ @name = args[:name] if args.key?(:name)
1400
+ @path_nodes = args[:path_nodes] if args.key?(:path_nodes)
1285
1401
  end
1286
1402
  end
1287
1403
 
@@ -1514,11 +1630,26 @@ module Google
1514
1630
  # @return [String]
1515
1631
  attr_accessor :name
1516
1632
 
1633
+ # Apply resource_value only to resources that match resource_type. resource_type
1634
+ # will be checked with "AND" of other resources. E.g. "storage.googleapis.com/
1635
+ # Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.
1636
+ # googleapis.com/Bucket" resources.
1637
+ # Corresponds to the JSON property `resourceType`
1638
+ # @return [String]
1639
+ attr_accessor :resource_type
1640
+
1517
1641
  # Required. Resource value level this expression represents
1518
1642
  # Corresponds to the JSON property `resourceValue`
1519
1643
  # @return [String]
1520
1644
  attr_accessor :resource_value
1521
1645
 
1646
+ # Project or folder to scope this config to. For example, "project/456" would
1647
+ # apply this config only to resources in "project/456" scope will be checked
1648
+ # with "AND" of other resources.
1649
+ # Corresponds to the JSON property `scope`
1650
+ # @return [String]
1651
+ attr_accessor :scope
1652
+
1522
1653
  # Required. Tag values combined with AND to check against. Values in the form "
1523
1654
  # tagValues/123" E.g. [ "tagValues/123", "tagValues/456", "tagValues/789" ]
1524
1655
  # https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
@@ -1533,7 +1664,9 @@ module Google
1533
1664
  # Update properties of this object
1534
1665
  def update!(**args)
1535
1666
  @name = args[:name] if args.key?(:name)
1667
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1536
1668
  @resource_value = args[:resource_value] if args.key?(:resource_value)
1669
+ @scope = args[:scope] if args.key?(:scope)
1537
1670
  @tag_values = args[:tag_values] if args.key?(:tag_values)
1538
1671
  end
1539
1672
  end
@@ -2190,6 +2323,46 @@ module Google
2190
2323
  end
2191
2324
  end
2192
2325
 
2326
+ # Represents one point that an attacker passes through in this exposure path.
2327
+ class PathNode
2328
+ include Google::Apis::Core::Hashable
2329
+
2330
+ # The findings associated with this node in the exposure path.
2331
+ # Corresponds to the JSON property `associatedFindings`
2332
+ # @return [Array<Google::Apis::SecuritycenterV1beta2::AssociatedFinding>]
2333
+ attr_accessor :associated_findings
2334
+
2335
+ # Human readable name of this resource.
2336
+ # Corresponds to the JSON property `displayName`
2337
+ # @return [String]
2338
+ attr_accessor :display_name
2339
+
2340
+ # The name of the resource at this point in the exposure path. The format of the
2341
+ # name is: https://cloud.google.com/apis/design/resource_names#
2342
+ # full_resource_name
2343
+ # Corresponds to the JSON property `resource`
2344
+ # @return [String]
2345
+ attr_accessor :resource
2346
+
2347
+ # The resource type of this resource. See: https://cloud.google.com/asset-
2348
+ # inventory/docs/supported-asset-types
2349
+ # Corresponds to the JSON property `resourceType`
2350
+ # @return [String]
2351
+ attr_accessor :resource_type
2352
+
2353
+ def initialize(**args)
2354
+ update!(**args)
2355
+ end
2356
+
2357
+ # Update properties of this object
2358
+ def update!(**args)
2359
+ @associated_findings = args[:associated_findings] if args.key?(:associated_findings)
2360
+ @display_name = args[:display_name] if args.key?(:display_name)
2361
+ @resource = args[:resource] if args.key?(:resource)
2362
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
2363
+ end
2364
+ end
2365
+
2193
2366
  # Kubernetes Pod.
2194
2367
  class Pod
2195
2368
  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.37.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220921"
25
+ REVISION = "20221027"
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 AssociatedFinding
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Compliance
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -106,6 +112,12 @@ module Google
106
112
  include Google::Apis::Core::JsonObjectSupport
107
113
  end
108
114
 
115
+ class Edge
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
109
121
  class EnvironmentVariable
110
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
123
 
@@ -316,6 +328,12 @@ module Google
316
328
  include Google::Apis::Core::JsonObjectSupport
317
329
  end
318
330
 
331
+ class PathNode
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
319
337
  class Pod
320
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
339
 
@@ -426,7 +444,7 @@ module Google
426
444
  property :service_account_key_name, as: 'serviceAccountKeyName'
427
445
  property :service_name, as: 'serviceName'
428
446
  property :user_agent_family, as: 'userAgentFamily'
429
- property :username, as: 'username'
447
+ property :user_name, as: 'userName'
430
448
  end
431
449
  end
432
450
 
@@ -443,6 +461,14 @@ module Google
443
461
  end
444
462
  end
445
463
 
464
+ class AssociatedFinding
465
+ # @private
466
+ class Representation < Google::Apis::Core::JsonRepresentation
467
+ property :canonical_finding_name, as: 'canonicalFindingName'
468
+ property :finding_category, as: 'findingCategory'
469
+ end
470
+ end
471
+
446
472
  class Compliance
447
473
  # @private
448
474
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -564,6 +590,14 @@ module Google
564
590
  end
565
591
  end
566
592
 
593
+ class Edge
594
+ # @private
595
+ class Representation < Google::Apis::Core::JsonRepresentation
596
+ property :destination, as: 'destination'
597
+ property :source, as: 'source'
598
+ end
599
+ end
600
+
567
601
  class EnvironmentVariable
568
602
  # @private
569
603
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -717,12 +751,25 @@ module Google
717
751
  class GoogleCloudSecuritycenterV1ExposedResource
718
752
  # @private
719
753
  class Representation < Google::Apis::Core::JsonRepresentation
754
+ property :display_name, as: 'displayName'
755
+ collection :methods_prop, as: 'methods'
756
+ property :name, as: 'name'
757
+ property :resource, as: 'resource'
758
+ property :resource_type, as: 'resourceType'
759
+ property :resource_value, as: 'resourceValue'
720
760
  end
721
761
  end
722
762
 
723
763
  class GoogleCloudSecuritycenterV1ExposurePath
724
764
  # @private
725
765
  class Representation < Google::Apis::Core::JsonRepresentation
766
+ collection :edges, as: 'edges', class: Google::Apis::SecuritycenterV1beta2::Edge, decorator: Google::Apis::SecuritycenterV1beta2::Edge::Representation
767
+
768
+ property :exposed_resource, as: 'exposedResource', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExposedResource, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ExposedResource::Representation
769
+
770
+ property :name, as: 'name'
771
+ collection :path_nodes, as: 'pathNodes', class: Google::Apis::SecuritycenterV1beta2::PathNode, decorator: Google::Apis::SecuritycenterV1beta2::PathNode::Representation
772
+
726
773
  end
727
774
  end
728
775
 
@@ -780,7 +827,9 @@ module Google
780
827
  # @private
781
828
  class Representation < Google::Apis::Core::JsonRepresentation
782
829
  property :name, as: 'name'
830
+ property :resource_type, as: 'resourceType'
783
831
  property :resource_value, as: 'resourceValue'
832
+ property :scope, as: 'scope'
784
833
  collection :tag_values, as: 'tagValues'
785
834
  end
786
835
  end
@@ -959,6 +1008,17 @@ module Google
959
1008
  end
960
1009
  end
961
1010
 
1011
+ class PathNode
1012
+ # @private
1013
+ class Representation < Google::Apis::Core::JsonRepresentation
1014
+ collection :associated_findings, as: 'associatedFindings', class: Google::Apis::SecuritycenterV1beta2::AssociatedFinding, decorator: Google::Apis::SecuritycenterV1beta2::AssociatedFinding::Representation
1015
+
1016
+ property :display_name, as: 'displayName'
1017
+ property :resource, as: 'resource'
1018
+ property :resource_type, as: 'resourceType'
1019
+ end
1020
+ end
1021
+
962
1022
  class Pod
963
1023
  # @private
964
1024
  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.37.0
4
+ version: 0.39.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: 2022-10-03 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: 0.9.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.0
29
+ version: 0.9.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.39.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: []