google-apis-securitycenter_v1 0.51.0 → 0.52.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: 3e9403ed17a12fddd9bcc5ed689490b08735fa461bbdeb2f2f7d0311ee1bb480
4
- data.tar.gz: 488b3aaafdcb6bf2f672b6f7cce4e1eb74373dc40d1e79422fb512e41994c7eb
3
+ metadata.gz: 5d109ce42434d4dd6a79f25ba347753635fec072f19f13c6770c7c4b58333a7a
4
+ data.tar.gz: 6af80d653861d1bc2d33e8434e0b8e5765f4529b1042d10edf65caed71804ac6
5
5
  SHA512:
6
- metadata.gz: 6cbadfea6b5cf91028c808b44a808b274965dfd0861cb93c87d55a8ca2f8d059e6f74586179bf95739ae43269a9ba89897aa09adc32bdac65d662f2ced0ce993
7
- data.tar.gz: d61a2262fb241610717ee8be4bfbfd0245e962d6a309a218cf7e8212233f8d265df0b706de116a086d2d12c8c719f70659e22fb50a3b8514d7abd8980ffc6836
6
+ metadata.gz: 69b4ad5ed3be4c2fed09c62527d795f54daf9cf4436d4efdf78733730e66c47a6de3cbbb7755a0e7a62a99a613cef3180339398ee2e5074f555eebbc917a4d79
7
+ data.tar.gz: 3385f70294153d61b1667361799282e0d20aea0bd72ea6d1d824eca0125f9537429b0bfd3d1a957d3a4badd6e01fb46a2b15d95d968a35c4b4ec34a21e66c149
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-securitycenter_v1
2
2
 
3
+ ### v0.52.0 (2023-03-26)
4
+
5
+ * Regenerated from discovery document revision 20230321
6
+
3
7
  ### v0.51.0 (2023-02-15)
4
8
 
5
9
  * Regenerated using generator version 0.12.0
@@ -502,6 +502,69 @@ module Google
502
502
  end
503
503
  end
504
504
 
505
+ # The [data profile](https://cloud.google.com/dlp/docs/data-profiles) associated
506
+ # with the finding.
507
+ class CloudDlpDataProfile
508
+ include Google::Apis::Core::Hashable
509
+
510
+ # Name of the data profile, for example, `projects/123/locations/europe/
511
+ # tableProfiles/8383929`.
512
+ # Corresponds to the JSON property `dataProfile`
513
+ # @return [String]
514
+ attr_accessor :data_profile
515
+
516
+ def initialize(**args)
517
+ update!(**args)
518
+ end
519
+
520
+ # Update properties of this object
521
+ def update!(**args)
522
+ @data_profile = args[:data_profile] if args.key?(:data_profile)
523
+ end
524
+ end
525
+
526
+ # Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection job](
527
+ # https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced the
528
+ # finding.
529
+ class CloudDlpInspection
530
+ include Google::Apis::Core::Hashable
531
+
532
+ # Whether Cloud DLP scanned the complete resource or a sampled subset.
533
+ # Corresponds to the JSON property `fullScan`
534
+ # @return [Boolean]
535
+ attr_accessor :full_scan
536
+ alias_method :full_scan?, :full_scan
537
+
538
+ # The [type of information](https://cloud.google.com/dlp/docs/infotypes-
539
+ # reference) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
540
+ # Corresponds to the JSON property `infoType`
541
+ # @return [String]
542
+ attr_accessor :info_type
543
+
544
+ # The number of times Cloud DLP found this infoType within this job and resource.
545
+ # Corresponds to the JSON property `infoTypeCount`
546
+ # @return [Fixnum]
547
+ attr_accessor :info_type_count
548
+
549
+ # Name of the inspection job, for example, `projects/123/locations/europe/
550
+ # dlpJobs/i-8383929`.
551
+ # Corresponds to the JSON property `inspectJob`
552
+ # @return [String]
553
+ attr_accessor :inspect_job
554
+
555
+ def initialize(**args)
556
+ update!(**args)
557
+ end
558
+
559
+ # Update properties of this object
560
+ def update!(**args)
561
+ @full_scan = args[:full_scan] if args.key?(:full_scan)
562
+ @info_type = args[:info_type] if args.key?(:info_type)
563
+ @info_type_count = args[:info_type_count] if args.key?(:info_type_count)
564
+ @inspect_job = args[:inspect_job] if args.key?(:inspect_job)
565
+ end
566
+ end
567
+
505
568
  # Contains compliance information about a security standard indicating unmet
506
569
  # recommendations.
507
570
  class Compliance
@@ -1111,6 +1174,19 @@ module Google
1111
1174
  # @return [String]
1112
1175
  attr_accessor :category
1113
1176
 
1177
+ # The [data profile](https://cloud.google.com/dlp/docs/data-profiles) associated
1178
+ # with the finding.
1179
+ # Corresponds to the JSON property `cloudDlpDataProfile`
1180
+ # @return [Google::Apis::SecuritycenterV1::CloudDlpDataProfile]
1181
+ attr_accessor :cloud_dlp_data_profile
1182
+
1183
+ # Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection job](
1184
+ # https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced the
1185
+ # finding.
1186
+ # Corresponds to the JSON property `cloudDlpInspection`
1187
+ # @return [Google::Apis::SecuritycenterV1::CloudDlpInspection]
1188
+ attr_accessor :cloud_dlp_inspection
1189
+
1114
1190
  # Contains compliance information for security standards associated to the
1115
1191
  # finding.
1116
1192
  # Corresponds to the JSON property `compliances`
@@ -1228,6 +1304,12 @@ module Google
1228
1304
  # @return [Google::Apis::SecuritycenterV1::MitreAttack]
1229
1305
  attr_accessor :mitre_attack
1230
1306
 
1307
+ # Unique identifier of the module which generated the finding. Example: folders/
1308
+ # 598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
1309
+ # Corresponds to the JSON property `moduleName`
1310
+ # @return [String]
1311
+ attr_accessor :module_name
1312
+
1231
1313
  # Indicates the mute state of a finding (either muted, unmuted or undefined).
1232
1314
  # Unlike other attributes of a finding, a finding provider shouldn't set the
1233
1315
  # value of mute.
@@ -1260,6 +1342,12 @@ module Google
1260
1342
  # @return [String]
1261
1343
  attr_accessor :next_steps
1262
1344
 
1345
+ # Contains information about the org policy constraints associated with the
1346
+ # finding.
1347
+ # Corresponds to the JSON property `orgPolicyConstraints`
1348
+ # @return [Array<Google::Apis::SecuritycenterV1::OrgPolicyConstraint>]
1349
+ attr_accessor :org_policy_constraints
1350
+
1263
1351
  # The relative resource name of the source the finding belongs to. See: https://
1264
1352
  # cloud.google.com/apis/design/resource_names#relative_resource_name This field
1265
1353
  # is immutable after creation time. For example: "organizations/`organization_id`
@@ -1329,6 +1417,8 @@ module Google
1329
1417
  @access = args[:access] if args.key?(:access)
1330
1418
  @canonical_name = args[:canonical_name] if args.key?(:canonical_name)
1331
1419
  @category = args[:category] if args.key?(:category)
1420
+ @cloud_dlp_data_profile = args[:cloud_dlp_data_profile] if args.key?(:cloud_dlp_data_profile)
1421
+ @cloud_dlp_inspection = args[:cloud_dlp_inspection] if args.key?(:cloud_dlp_inspection)
1332
1422
  @compliances = args[:compliances] if args.key?(:compliances)
1333
1423
  @connections = args[:connections] if args.key?(:connections)
1334
1424
  @contacts = args[:contacts] if args.key?(:contacts)
@@ -1347,11 +1437,13 @@ module Google
1347
1437
  @kernel_rootkit = args[:kernel_rootkit] if args.key?(:kernel_rootkit)
1348
1438
  @kubernetes = args[:kubernetes] if args.key?(:kubernetes)
1349
1439
  @mitre_attack = args[:mitre_attack] if args.key?(:mitre_attack)
1440
+ @module_name = args[:module_name] if args.key?(:module_name)
1350
1441
  @mute = args[:mute] if args.key?(:mute)
1351
1442
  @mute_initiator = args[:mute_initiator] if args.key?(:mute_initiator)
1352
1443
  @mute_update_time = args[:mute_update_time] if args.key?(:mute_update_time)
1353
1444
  @name = args[:name] if args.key?(:name)
1354
1445
  @next_steps = args[:next_steps] if args.key?(:next_steps)
1446
+ @org_policy_constraints = args[:org_policy_constraints] if args.key?(:org_policy_constraints)
1355
1447
  @parent = args[:parent] if args.key?(:parent)
1356
1448
  @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
1357
1449
  @processes = args[:processes] if args.key?(:processes)
@@ -1904,11 +1996,29 @@ module Google
1904
1996
  class GoogleCloudSecuritycenterV1ResourceValueConfig
1905
1997
  include Google::Apis::Core::Hashable
1906
1998
 
1999
+ # Output only. Timestamp this resource value config was created.
2000
+ # Corresponds to the JSON property `createTime`
2001
+ # @return [String]
2002
+ attr_accessor :create_time
2003
+
2004
+ # Description of the resource value config.
2005
+ # Corresponds to the JSON property `description`
2006
+ # @return [String]
2007
+ attr_accessor :description
2008
+
1907
2009
  # Name for the resource value config
1908
2010
  # Corresponds to the JSON property `name`
1909
2011
  # @return [String]
1910
2012
  attr_accessor :name
1911
2013
 
2014
+ # List of resource labels to search for, evaluated with AND. E.g. "
2015
+ # resource_labels_selector": `"key": "value", "env": "prod"` will match
2016
+ # resources with labels "key": "value" AND "env": "prod" https://cloud.google.
2017
+ # com/resource-manager/docs/creating-managing-labels
2018
+ # Corresponds to the JSON property `resourceLabelsSelector`
2019
+ # @return [Hash<String,String>]
2020
+ attr_accessor :resource_labels_selector
2021
+
1912
2022
  # Apply resource_value only to resources that match resource_type. resource_type
1913
2023
  # will be checked with "AND" of other resources. E.g. "storage.googleapis.com/
1914
2024
  # Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.
@@ -1936,17 +2046,26 @@ module Google
1936
2046
  # @return [Array<String>]
1937
2047
  attr_accessor :tag_values
1938
2048
 
2049
+ # Output only. Timestamp this resource value config was last updated.
2050
+ # Corresponds to the JSON property `updateTime`
2051
+ # @return [String]
2052
+ attr_accessor :update_time
2053
+
1939
2054
  def initialize(**args)
1940
2055
  update!(**args)
1941
2056
  end
1942
2057
 
1943
2058
  # Update properties of this object
1944
2059
  def update!(**args)
2060
+ @create_time = args[:create_time] if args.key?(:create_time)
2061
+ @description = args[:description] if args.key?(:description)
1945
2062
  @name = args[:name] if args.key?(:name)
2063
+ @resource_labels_selector = args[:resource_labels_selector] if args.key?(:resource_labels_selector)
1946
2064
  @resource_type = args[:resource_type] if args.key?(:resource_type)
1947
2065
  @resource_value = args[:resource_value] if args.key?(:resource_value)
1948
2066
  @scope = args[:scope] if args.key?(:scope)
1949
2067
  @tag_values = args[:tag_values] if args.key?(:tag_values)
2068
+ @update_time = args[:update_time] if args.key?(:update_time)
1950
2069
  end
1951
2070
  end
1952
2071
 
@@ -3379,6 +3498,26 @@ module Google
3379
3498
  end
3380
3499
  end
3381
3500
 
3501
+ # Encapsulates data about a constraint associated with an organization policy.
3502
+ class OrgPolicyConstraint
3503
+ include Google::Apis::Core::Hashable
3504
+
3505
+ # The resource name of the constraint. Example: "organizations/`organization_id`/
3506
+ # constraints/`constraint_name`"
3507
+ # Corresponds to the JSON property `name`
3508
+ # @return [String]
3509
+ attr_accessor :name
3510
+
3511
+ def initialize(**args)
3512
+ update!(**args)
3513
+ end
3514
+
3515
+ # Update properties of this object
3516
+ def update!(**args)
3517
+ @name = args[:name] if args.key?(:name)
3518
+ end
3519
+ end
3520
+
3382
3521
  # User specified settings that are attached to the Security Command Center
3383
3522
  # organization.
3384
3523
  class OrganizationSettings
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SecuritycenterV1
18
18
  # Version of the google-apis-securitycenter_v1 gem
19
- GEM_VERSION = "0.51.0"
19
+ GEM_VERSION = "0.52.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 = "20230126"
25
+ REVISION = "20230321"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,18 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class CloudDlpDataProfile
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class CloudDlpInspection
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class Compliance
80
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
93
 
@@ -466,6 +478,12 @@ module Google
466
478
  include Google::Apis::Core::JsonObjectSupport
467
479
  end
468
480
 
481
+ class OrgPolicyConstraint
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
469
487
  class OrganizationSettings
470
488
  class Representation < Google::Apis::Core::JsonRepresentation; end
471
489
 
@@ -711,6 +729,23 @@ module Google
711
729
  end
712
730
  end
713
731
 
732
+ class CloudDlpDataProfile
733
+ # @private
734
+ class Representation < Google::Apis::Core::JsonRepresentation
735
+ property :data_profile, as: 'dataProfile'
736
+ end
737
+ end
738
+
739
+ class CloudDlpInspection
740
+ # @private
741
+ class Representation < Google::Apis::Core::JsonRepresentation
742
+ property :full_scan, as: 'fullScan'
743
+ property :info_type, as: 'infoType'
744
+ property :info_type_count, :numeric_string => true, as: 'infoTypeCount'
745
+ property :inspect_job, as: 'inspectJob'
746
+ end
747
+ end
748
+
714
749
  class Compliance
715
750
  # @private
716
751
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -872,6 +907,10 @@ module Google
872
907
 
873
908
  property :canonical_name, as: 'canonicalName'
874
909
  property :category, as: 'category'
910
+ property :cloud_dlp_data_profile, as: 'cloudDlpDataProfile', class: Google::Apis::SecuritycenterV1::CloudDlpDataProfile, decorator: Google::Apis::SecuritycenterV1::CloudDlpDataProfile::Representation
911
+
912
+ property :cloud_dlp_inspection, as: 'cloudDlpInspection', class: Google::Apis::SecuritycenterV1::CloudDlpInspection, decorator: Google::Apis::SecuritycenterV1::CloudDlpInspection::Representation
913
+
875
914
  collection :compliances, as: 'compliances', class: Google::Apis::SecuritycenterV1::Compliance, decorator: Google::Apis::SecuritycenterV1::Compliance::Representation
876
915
 
877
916
  collection :connections, as: 'connections', class: Google::Apis::SecuritycenterV1::Connection, decorator: Google::Apis::SecuritycenterV1::Connection::Representation
@@ -903,11 +942,14 @@ module Google
903
942
 
904
943
  property :mitre_attack, as: 'mitreAttack', class: Google::Apis::SecuritycenterV1::MitreAttack, decorator: Google::Apis::SecuritycenterV1::MitreAttack::Representation
905
944
 
945
+ property :module_name, as: 'moduleName'
906
946
  property :mute, as: 'mute'
907
947
  property :mute_initiator, as: 'muteInitiator'
908
948
  property :mute_update_time, as: 'muteUpdateTime'
909
949
  property :name, as: 'name'
910
950
  property :next_steps, as: 'nextSteps'
951
+ collection :org_policy_constraints, as: 'orgPolicyConstraints', class: Google::Apis::SecuritycenterV1::OrgPolicyConstraint, decorator: Google::Apis::SecuritycenterV1::OrgPolicyConstraint::Representation
952
+
911
953
  property :parent, as: 'parent'
912
954
  property :parent_display_name, as: 'parentDisplayName'
913
955
  collection :processes, as: 'processes', class: Google::Apis::SecuritycenterV1::Process, decorator: Google::Apis::SecuritycenterV1::Process::Representation
@@ -1063,11 +1105,15 @@ module Google
1063
1105
  class GoogleCloudSecuritycenterV1ResourceValueConfig
1064
1106
  # @private
1065
1107
  class Representation < Google::Apis::Core::JsonRepresentation
1108
+ property :create_time, as: 'createTime'
1109
+ property :description, as: 'description'
1066
1110
  property :name, as: 'name'
1111
+ hash :resource_labels_selector, as: 'resourceLabelsSelector'
1067
1112
  property :resource_type, as: 'resourceType'
1068
1113
  property :resource_value, as: 'resourceValue'
1069
1114
  property :scope, as: 'scope'
1070
1115
  collection :tag_values, as: 'tagValues'
1116
+ property :update_time, as: 'updateTime'
1071
1117
  end
1072
1118
  end
1073
1119
 
@@ -1424,6 +1470,13 @@ module Google
1424
1470
  end
1425
1471
  end
1426
1472
 
1473
+ class OrgPolicyConstraint
1474
+ # @private
1475
+ class Representation < Google::Apis::Core::JsonRepresentation
1476
+ property :name, as: 'name'
1477
+ end
1478
+ end
1479
+
1427
1480
  class OrganizationSettings
1428
1481
  # @private
1429
1482
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2262,13 +2262,7 @@ module Google
2262
2262
  end
2263
2263
 
2264
2264
  # Lists operations that match the specified filter in the request. If the server
2265
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2266
- # binding allows API services to override the binding to use different resource
2267
- # name schemes, such as `users/*/operations`. To override the binding, API
2268
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2269
- # service configuration. For backwards compatibility, the default name includes
2270
- # the operations collection id, however overriding users must ensure the name
2271
- # binding is the parent resource, without the operations collection id.
2265
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
2272
2266
  # @param [String] name
2273
2267
  # The name of the operation's parent resource.
2274
2268
  # @param [String] filter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-securitycenter_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.51.0
4
+ version: 0.52.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-02-19 00:00:00.000000000 Z
11
+ date: 2023-03-26 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.51.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.52.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1
63
63
  post_install_message:
64
64
  rdoc_options: []