google-apis-securitycenter_v1beta2 0.46.0 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f26c81e486fad0335fb2b21bfa62e61ff343e9c6d40984b96169a7cbf4aba69
4
- data.tar.gz: cee1497221b3361959d56611779f9a0d7d656264a8e20d8d6dbf7371a4851b83
3
+ metadata.gz: 3e7be4a9590cfbbf3880baaa299e1ba547e7390536e0a424f702494b84d2a7ee
4
+ data.tar.gz: 82edb6f0e9681be9d63bdde20fe0f439f16a217af1da201b659179a705fe7587
5
5
  SHA512:
6
- metadata.gz: c3ff87cdddd5fa0ad6f5e23aa4d138ab2c4bc9b4f6925e1f4135beba78a7f6699cdadf847de0f97e8e5aee7f907f229f8bc06460fdfaa065a82a6a0157d0e44b
7
- data.tar.gz: 4126401030ecb678a44632080aa37431f707d5dd21261df4c56770273a5b52ec92d72052524ace460c2eca1ddbc07b0e8153cdc9c9c1f25beb9ec81e840af2a3
6
+ metadata.gz: 465d46773357825575c92aa0e699e668c855273592e8a2f4bfacb46a4670e2445da1a883692128b61d800c6306d80cde5a4c28d81e63a739dbac019d98da2a73
7
+ data.tar.gz: c2d89a6a7da9c33cbe1dd7cfff333f895e42005524549a5fc91ac422cf0f597937c84ecb6791a288153c80e339999579a2b958973e3954fc3d0862a38e7ef558
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-securitycenter_v1beta2
2
2
 
3
+ ### v0.47.0 (2023-04-23)
4
+
5
+ * Regenerated from discovery document revision 20230414
6
+
3
7
  ### v0.46.0 (2023-04-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20230329
@@ -42,39 +42,41 @@ module Google
42
42
  attr_accessor :method_name
43
43
 
44
44
  # Associated email, such as "foo@google.com". The email address of the
45
- # authenticated user (or service account on behalf of third party principal)
46
- # making the request. For third party identity callers, the `principal_subject`
47
- # field is populated instead of this field. For privacy reasons, the principal
48
- # email address is sometimes redacted. For more information, see [Caller
49
- # identities in audit logs](https://cloud.google.com/logging/docs/audit#user-id).
45
+ # authenticated user or a service account acting on behalf of a third party
46
+ # principal making the request. For third party identity callers, the `
47
+ # principal_subject` field is populated instead of this field. For privacy
48
+ # reasons, the principal email address is sometimes redacted. For more
49
+ # information, see [Caller identities in audit logs](https://cloud.google.com/
50
+ # logging/docs/audit#user-id).
50
51
  # Corresponds to the JSON property `principalEmail`
51
52
  # @return [String]
52
53
  attr_accessor :principal_email
53
54
 
54
- # A string representing the principal_subject associated with the identity. As
55
- # compared to `principal_email`, supports principals that aren't associated with
56
- # email addresses, such as third party principals. For most identities, the
57
- # format will be `principal://iam.googleapis.com/`identity pool name`/subjects/`
58
- # subject`` except for some GKE identities (GKE_WORKLOAD, FREEFORM,
59
- # GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:`
60
- # identity pool name`[`subject`]`
55
+ # A string that represents the principal_subject that is associated with the
56
+ # identity. Unlike `principal_email`, `principal_subject` supports principals
57
+ # that aren't associated with email addresses, such as third party principals.
58
+ # For most identities, the format is `principal://iam.googleapis.com/`identity
59
+ # pool name`/subject/`subject``. Some GKE identities, such as GKE_WORKLOAD,
60
+ # FREEFORM, and GKE_HUB_WORKLOAD, still use the legacy format `serviceAccount:`
61
+ # identity pool name`[`subject`]`.
61
62
  # Corresponds to the JSON property `principalSubject`
62
63
  # @return [String]
63
64
  attr_accessor :principal_subject
64
65
 
65
- # Identity delegation history of an authenticated service account that makes the
66
- # request. It contains information on the real authorities that try to access
67
- # GCP resources by delegating on a service account. When multiple authorities
68
- # are present, they are guaranteed to be sorted based on the original ordering
69
- # of the identity delegation events.
66
+ # The identity delegation history of an authenticated service account that made
67
+ # the request. The `serviceAccountDelegationInfo[]` object contains information
68
+ # about the real authorities that try to access Google Cloud resources by
69
+ # delegating on a service account. When multiple authorities are present, they
70
+ # are guaranteed to be sorted based on the original ordering of the identity
71
+ # delegation events.
70
72
  # Corresponds to the JSON property `serviceAccountDelegationInfo`
71
73
  # @return [Array<Google::Apis::SecuritycenterV1beta2::ServiceAccountDelegationInfo>]
72
74
  attr_accessor :service_account_delegation_info
73
75
 
74
- # The name of the service account key used to create or exchange credentials for
75
- # authenticating the service account making the request. This is a scheme-less
76
- # URI full resource name. For example: "//iam.googleapis.com/projects/`
77
- # PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key`"
76
+ # The name of the service account key that was used to create or exchange
77
+ # credentials when authenticating the service account that made the request.
78
+ # This is a scheme-less URI full resource name. For example: "//iam.googleapis.
79
+ # com/projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key`".
78
80
  # Corresponds to the JSON property `serviceAccountKeyName`
79
81
  # @return [String]
80
82
  attr_accessor :service_account_key_name
@@ -85,18 +87,16 @@ module Google
85
87
  # @return [String]
86
88
  attr_accessor :service_name
87
89
 
88
- # What kind of user agent is associated, for example operating system shells,
89
- # embedded or stand-alone applications, etc.
90
+ # Type of user agent associated with the finding. For example, an operating
91
+ # system shell or an embedded or standalone application.
90
92
  # Corresponds to the JSON property `userAgentFamily`
91
93
  # @return [String]
92
94
  attr_accessor :user_agent_family
93
95
 
94
- # A string that represents the username of a user, user account, or other entity
95
- # involved in the access event. What the entity is and what its role in the
96
- # access event is depends on the finding that this field appears in. The entity
97
- # is likely not an IAM principal, but could be a user that is logged into an
98
- # operating system, if the finding is VM-related, or a user that is logged into
99
- # some type of application that is involved in the access event.
96
+ # A string that represents a username. The username provided depends on the type
97
+ # of the finding and is likely not an IAM principal. For example, this can be a
98
+ # system username if the finding is related to a virtual machine, or it can be
99
+ # an application login username.
100
100
  # Corresponds to the JSON property `userName`
101
101
  # @return [String]
102
102
  attr_accessor :user_name
@@ -823,6 +823,60 @@ module Google
823
823
  end
824
824
  end
825
825
 
826
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
827
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
828
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
829
+ # "Summary size limit" description: "Determines if a summary is less than 100
830
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
831
+ # Requestor is owner" description: "Determines if requestor is the document
832
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
833
+ # Logic): title: "Public documents" description: "Determine whether the document
834
+ # should be publicly visible" expression: "document.type != 'private' &&
835
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
836
+ # string" description: "Create a notification string with a timestamp."
837
+ # expression: "'New message received at ' + string(document.create_time)" The
838
+ # exact variables and functions that may be referenced within an expression are
839
+ # determined by the service that evaluates it. See the service documentation for
840
+ # additional information.
841
+ class Expr
842
+ include Google::Apis::Core::Hashable
843
+
844
+ # Optional. Description of the expression. This is a longer text which describes
845
+ # the expression, e.g. when hovered over it in a UI.
846
+ # Corresponds to the JSON property `description`
847
+ # @return [String]
848
+ attr_accessor :description
849
+
850
+ # Textual representation of an expression in Common Expression Language syntax.
851
+ # Corresponds to the JSON property `expression`
852
+ # @return [String]
853
+ attr_accessor :expression
854
+
855
+ # Optional. String indicating the location of the expression for error reporting,
856
+ # e.g. a file name and a position in the file.
857
+ # Corresponds to the JSON property `location`
858
+ # @return [String]
859
+ attr_accessor :location
860
+
861
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
862
+ # This can be used e.g. in UIs which allow to enter the expression.
863
+ # Corresponds to the JSON property `title`
864
+ # @return [String]
865
+ attr_accessor :title
866
+
867
+ def initialize(**args)
868
+ update!(**args)
869
+ end
870
+
871
+ # Update properties of this object
872
+ def update!(**args)
873
+ @description = args[:description] if args.key?(:description)
874
+ @expression = args[:expression] if args.key?(:expression)
875
+ @location = args[:location] if args.key?(:location)
876
+ @title = args[:title] if args.key?(:title)
877
+ end
878
+ end
879
+
826
880
  # File information about the related binary/library used by an executable, or
827
881
  # the script used by a script interpreter
828
882
  class File
@@ -939,7 +993,7 @@ module Google
939
993
  # @return [Hash<String,Google::Apis::SecuritycenterV1beta2::ContactDetails>]
940
994
  attr_accessor :contacts
941
995
 
942
- # Containers associated with the finding. containers provides information for
996
+ # Containers associated with the finding. This field provides information for
943
997
  # both Kubernetes and non-Kubernetes containers.
944
998
  # Corresponds to the JSON property `containers`
945
999
  # @return [Array<Google::Apis::SecuritycenterV1beta2::Container>]
@@ -960,7 +1014,7 @@ module Google
960
1014
  # @return [Google::Apis::SecuritycenterV1beta2::Database]
961
1015
  attr_accessor :database
962
1016
 
963
- # Contains more detail about the finding.
1017
+ # Contains more details about the finding.
964
1018
  # Corresponds to the JSON property `description`
965
1019
  # @return [String]
966
1020
  attr_accessor :description
@@ -1005,7 +1059,7 @@ module Google
1005
1059
  # @return [String]
1006
1060
  attr_accessor :finding_class
1007
1061
 
1008
- # Represents IAM bindings associated with the Finding.
1062
+ # Represents IAM bindings associated with the finding.
1009
1063
  # Corresponds to the JSON property `iamBindings`
1010
1064
  # @return [Array<Google::Apis::SecuritycenterV1beta2::IamBinding>]
1011
1065
  attr_accessor :iam_bindings
@@ -1048,10 +1102,9 @@ module Google
1048
1102
  # @return [String]
1049
1103
  attr_accessor :mute
1050
1104
 
1051
- # First known as mute_annotation. Records additional information about the mute
1052
- # operation e.g. mute config that muted the finding, user who muted the finding,
1053
- # etc. Unlike other attributes of a finding, a finding provider shouldn't set
1054
- # the value of mute.
1105
+ # Records additional information about the mute operation, for example, the [
1106
+ # mute configuration](/security-command-center/docs/how-to-mute-findings) that
1107
+ # muted the finding and the user who muted the finding.
1055
1108
  # Corresponds to the JSON property `muteInitiator`
1056
1109
  # @return [String]
1057
1110
  attr_accessor :mute_initiator
@@ -1061,14 +1114,16 @@ module Google
1061
1114
  # @return [String]
1062
1115
  attr_accessor :mute_update_time
1063
1116
 
1064
- # The relative resource name of this finding. See: https://cloud.google.com/apis/
1065
- # design/resource_names#relative_resource_name Example: "organizations/`
1066
- # organization_id`/sources/`source_id`/findings/`finding_id`"
1117
+ # The [relative resource name](https://cloud.google.com/apis/design/
1118
+ # resource_names#relative_resource_name) of the finding. Example: "organizations/
1119
+ # `organization_id`/sources/`source_id`/findings/`finding_id`", "folders/`
1120
+ # folder_id`/sources/`source_id`/findings/`finding_id`", "projects/`project_id`/
1121
+ # sources/`source_id`/findings/`finding_id`".
1067
1122
  # Corresponds to the JSON property `name`
1068
1123
  # @return [String]
1069
1124
  attr_accessor :name
1070
1125
 
1071
- # Next steps associate to the finding.
1126
+ # Steps to address the finding.
1072
1127
  # Corresponds to the JSON property `nextSteps`
1073
1128
  # @return [String]
1074
1129
  attr_accessor :next_steps
@@ -1359,6 +1414,156 @@ module Google
1359
1414
  end
1360
1415
  end
1361
1416
 
1417
+ # Defines the properties in a custom module configuration for Security Health
1418
+ # Analytics. Use the custom module configuration to create custom detectors that
1419
+ # generate custom findings for resources that you specify.
1420
+ class GoogleCloudSecuritycenterV1CustomConfig
1421
+ include Google::Apis::Core::Hashable
1422
+
1423
+ # A set of optional name-value pairs that define custom source properties to
1424
+ # return with each finding that is generated by the custom module. The custom
1425
+ # source properties that are defined here are included in the finding JSON under
1426
+ # `sourceProperties`.
1427
+ # Corresponds to the JSON property `customOutput`
1428
+ # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomOutputSpec]
1429
+ attr_accessor :custom_output
1430
+
1431
+ # Text that describes the vulnerability or misconfiguration that the custom
1432
+ # module detects. This explanation is returned with each finding instance to
1433
+ # help investigators understand the detected issue. The text must be enclosed in
1434
+ # quotation marks.
1435
+ # Corresponds to the JSON property `description`
1436
+ # @return [String]
1437
+ attr_accessor :description
1438
+
1439
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
1440
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
1441
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
1442
+ # "Summary size limit" description: "Determines if a summary is less than 100
1443
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
1444
+ # Requestor is owner" description: "Determines if requestor is the document
1445
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
1446
+ # Logic): title: "Public documents" description: "Determine whether the document
1447
+ # should be publicly visible" expression: "document.type != 'private' &&
1448
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
1449
+ # string" description: "Create a notification string with a timestamp."
1450
+ # expression: "'New message received at ' + string(document.create_time)" The
1451
+ # exact variables and functions that may be referenced within an expression are
1452
+ # determined by the service that evaluates it. See the service documentation for
1453
+ # additional information.
1454
+ # Corresponds to the JSON property `predicate`
1455
+ # @return [Google::Apis::SecuritycenterV1beta2::Expr]
1456
+ attr_accessor :predicate
1457
+
1458
+ # An explanation of the recommended steps that security teams can take to
1459
+ # resolve the detected issue. This explanation is returned with each finding
1460
+ # generated by this module in the `nextSteps` property of the finding JSON.
1461
+ # Corresponds to the JSON property `recommendation`
1462
+ # @return [String]
1463
+ attr_accessor :recommendation
1464
+
1465
+ # Resource for selecting resource type.
1466
+ # Corresponds to the JSON property `resourceSelector`
1467
+ # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ResourceSelector]
1468
+ attr_accessor :resource_selector
1469
+
1470
+ # The severity to assign to findings generated by the module.
1471
+ # Corresponds to the JSON property `severity`
1472
+ # @return [String]
1473
+ attr_accessor :severity
1474
+
1475
+ def initialize(**args)
1476
+ update!(**args)
1477
+ end
1478
+
1479
+ # Update properties of this object
1480
+ def update!(**args)
1481
+ @custom_output = args[:custom_output] if args.key?(:custom_output)
1482
+ @description = args[:description] if args.key?(:description)
1483
+ @predicate = args[:predicate] if args.key?(:predicate)
1484
+ @recommendation = args[:recommendation] if args.key?(:recommendation)
1485
+ @resource_selector = args[:resource_selector] if args.key?(:resource_selector)
1486
+ @severity = args[:severity] if args.key?(:severity)
1487
+ end
1488
+ end
1489
+
1490
+ # A set of optional name-value pairs that define custom source properties to
1491
+ # return with each finding that is generated by the custom module. The custom
1492
+ # source properties that are defined here are included in the finding JSON under
1493
+ # `sourceProperties`.
1494
+ class GoogleCloudSecuritycenterV1CustomOutputSpec
1495
+ include Google::Apis::Core::Hashable
1496
+
1497
+ # A list of custom output properties to add to the finding.
1498
+ # Corresponds to the JSON property `properties`
1499
+ # @return [Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Property>]
1500
+ attr_accessor :properties
1501
+
1502
+ def initialize(**args)
1503
+ update!(**args)
1504
+ end
1505
+
1506
+ # Update properties of this object
1507
+ def update!(**args)
1508
+ @properties = args[:properties] if args.key?(:properties)
1509
+ end
1510
+ end
1511
+
1512
+ # An EffectiveSecurityHealthAnalyticsCustomModule is the representation of a
1513
+ # Security Health Analytics custom module at a specified level of the resource
1514
+ # hierarchy: organization, folder, or project. If a custom module is inherited
1515
+ # from a parent organization or folder, the value of the `enablementState`
1516
+ # property in EffectiveSecurityHealthAnalyticsCustomModule is set to the value
1517
+ # that is effective in the parent, instead of `INHERITED`. For example, if the
1518
+ # module is enabled in a parent organization or folder, the effective
1519
+ # enablement_state for the module in all child folders or projects is also `
1520
+ # enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.
1521
+ class GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule
1522
+ include Google::Apis::Core::Hashable
1523
+
1524
+ # Defines the properties in a custom module configuration for Security Health
1525
+ # Analytics. Use the custom module configuration to create custom detectors that
1526
+ # generate custom findings for resources that you specify.
1527
+ # Corresponds to the JSON property `customConfig`
1528
+ # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomConfig]
1529
+ attr_accessor :custom_config
1530
+
1531
+ # Output only. The display name for the custom module. The name must be between
1532
+ # 1 and 128 characters, start with a lowercase letter, and contain alphanumeric
1533
+ # characters or underscores only.
1534
+ # Corresponds to the JSON property `displayName`
1535
+ # @return [String]
1536
+ attr_accessor :display_name
1537
+
1538
+ # Output only. The effective state of enablement for the module at the given
1539
+ # level of the hierarchy.
1540
+ # Corresponds to the JSON property `enablementState`
1541
+ # @return [String]
1542
+ attr_accessor :enablement_state
1543
+
1544
+ # Output only. The resource name of the custom module. Its format is "
1545
+ # organizations/`organization`/securityHealthAnalyticsSettings/
1546
+ # effectiveCustomModules/`customModule`", or "folders/`folder`/
1547
+ # securityHealthAnalyticsSettings/effectiveCustomModules/`customModule`", or "
1548
+ # projects/`project`/securityHealthAnalyticsSettings/effectiveCustomModules/`
1549
+ # customModule`"
1550
+ # Corresponds to the JSON property `name`
1551
+ # @return [String]
1552
+ attr_accessor :name
1553
+
1554
+ def initialize(**args)
1555
+ update!(**args)
1556
+ end
1557
+
1558
+ # Update properties of this object
1559
+ def update!(**args)
1560
+ @custom_config = args[:custom_config] if args.key?(:custom_config)
1561
+ @display_name = args[:display_name] if args.key?(:display_name)
1562
+ @enablement_state = args[:enablement_state] if args.key?(:enablement_state)
1563
+ @name = args[:name] if args.key?(:name)
1564
+ end
1565
+ end
1566
+
1362
1567
  # Representation of third party SIEM/SOAR fields within SCC.
1363
1568
  class GoogleCloudSecuritycenterV1ExternalSystem
1364
1569
  include Google::Apis::Core::Hashable
@@ -1514,6 +1719,45 @@ module Google
1514
1719
  end
1515
1720
  end
1516
1721
 
1722
+ # An individual name-value pair that defines a custom source property.
1723
+ class GoogleCloudSecuritycenterV1Property
1724
+ include Google::Apis::Core::Hashable
1725
+
1726
+ # Name of the property for the custom output.
1727
+ # Corresponds to the JSON property `name`
1728
+ # @return [String]
1729
+ attr_accessor :name
1730
+
1731
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
1732
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
1733
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
1734
+ # "Summary size limit" description: "Determines if a summary is less than 100
1735
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
1736
+ # Requestor is owner" description: "Determines if requestor is the document
1737
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
1738
+ # Logic): title: "Public documents" description: "Determine whether the document
1739
+ # should be publicly visible" expression: "document.type != 'private' &&
1740
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
1741
+ # string" description: "Create a notification string with a timestamp."
1742
+ # expression: "'New message received at ' + string(document.create_time)" The
1743
+ # exact variables and functions that may be referenced within an expression are
1744
+ # determined by the service that evaluates it. See the service documentation for
1745
+ # additional information.
1746
+ # Corresponds to the JSON property `valueExpression`
1747
+ # @return [Google::Apis::SecuritycenterV1beta2::Expr]
1748
+ attr_accessor :value_expression
1749
+
1750
+ def initialize(**args)
1751
+ update!(**args)
1752
+ end
1753
+
1754
+ # Update properties of this object
1755
+ def update!(**args)
1756
+ @name = args[:name] if args.key?(:name)
1757
+ @value_expression = args[:value_expression] if args.key?(:value_expression)
1758
+ end
1759
+ end
1760
+
1517
1761
  # Information related to the Google Cloud resource.
1518
1762
  class GoogleCloudSecuritycenterV1Resource
1519
1763
  include Google::Apis::Core::Hashable
@@ -1578,6 +1822,25 @@ module Google
1578
1822
  end
1579
1823
  end
1580
1824
 
1825
+ # Resource for selecting resource type.
1826
+ class GoogleCloudSecuritycenterV1ResourceSelector
1827
+ include Google::Apis::Core::Hashable
1828
+
1829
+ # The resource types to run the detector on.
1830
+ # Corresponds to the JSON property `resourceTypes`
1831
+ # @return [Array<String>]
1832
+ attr_accessor :resource_types
1833
+
1834
+ def initialize(**args)
1835
+ update!(**args)
1836
+ end
1837
+
1838
+ # Update properties of this object
1839
+ def update!(**args)
1840
+ @resource_types = args[:resource_types] if args.key?(:resource_types)
1841
+ end
1842
+ end
1843
+
1581
1844
  # Response of asset discovery run
1582
1845
  class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
1583
1846
  include Google::Apis::Core::Hashable
@@ -1603,6 +1866,80 @@ module Google
1603
1866
  end
1604
1867
  end
1605
1868
 
1869
+ # Represents an instance of a Security Health Analytics custom module, including
1870
+ # its full module name, display name, enablement state, and last updated time.
1871
+ # You can create a custom module at the organization, folder, or project level.
1872
+ # Custom modules that you create at the organization or folder level are
1873
+ # inherited by the child folders and projects.
1874
+ class GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
1875
+ include Google::Apis::Core::Hashable
1876
+
1877
+ # Output only. If empty, indicates that the custom module was created in the
1878
+ # organization, folder, or project in which you are viewing the custom module.
1879
+ # Otherwise, `ancestor_module` specifies the organization or folder from which
1880
+ # the custom module is inherited.
1881
+ # Corresponds to the JSON property `ancestorModule`
1882
+ # @return [String]
1883
+ attr_accessor :ancestor_module
1884
+
1885
+ # Defines the properties in a custom module configuration for Security Health
1886
+ # Analytics. Use the custom module configuration to create custom detectors that
1887
+ # generate custom findings for resources that you specify.
1888
+ # Corresponds to the JSON property `customConfig`
1889
+ # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomConfig]
1890
+ attr_accessor :custom_config
1891
+
1892
+ # The display name of the Security Health Analytics custom module. This display
1893
+ # name becomes the finding category for all findings that are returned by this
1894
+ # custom module. The display name must be between 1 and 128 characters, start
1895
+ # with a lowercase letter, and contain alphanumeric characters or underscores
1896
+ # only.
1897
+ # Corresponds to the JSON property `displayName`
1898
+ # @return [String]
1899
+ attr_accessor :display_name
1900
+
1901
+ # The enablement state of the custom module.
1902
+ # Corresponds to the JSON property `enablementState`
1903
+ # @return [String]
1904
+ attr_accessor :enablement_state
1905
+
1906
+ # Output only. The editor that last updated the custom module.
1907
+ # Corresponds to the JSON property `lastEditor`
1908
+ # @return [String]
1909
+ attr_accessor :last_editor
1910
+
1911
+ # Immutable. The resource name of the custom module. Its format is "
1912
+ # organizations/`organization`/securityHealthAnalyticsSettings/customModules/`
1913
+ # customModule`", or "folders/`folder`/securityHealthAnalyticsSettings/
1914
+ # customModules/`customModule`", or "projects/`project`/
1915
+ # securityHealthAnalyticsSettings/customModules/`customModule`" The id `
1916
+ # customModule` is server-generated and is not user settable. It will be a
1917
+ # numeric id containing 1-20 digits.
1918
+ # Corresponds to the JSON property `name`
1919
+ # @return [String]
1920
+ attr_accessor :name
1921
+
1922
+ # Output only. The time at which the custom module was last updated.
1923
+ # Corresponds to the JSON property `updateTime`
1924
+ # @return [String]
1925
+ attr_accessor :update_time
1926
+
1927
+ def initialize(**args)
1928
+ update!(**args)
1929
+ end
1930
+
1931
+ # Update properties of this object
1932
+ def update!(**args)
1933
+ @ancestor_module = args[:ancestor_module] if args.key?(:ancestor_module)
1934
+ @custom_config = args[:custom_config] if args.key?(:custom_config)
1935
+ @display_name = args[:display_name] if args.key?(:display_name)
1936
+ @enablement_state = args[:enablement_state] if args.key?(:enablement_state)
1937
+ @last_editor = args[:last_editor] if args.key?(:last_editor)
1938
+ @name = args[:name] if args.key?(:name)
1939
+ @update_time = args[:update_time] if args.key?(:update_time)
1940
+ end
1941
+ end
1942
+
1606
1943
  # Response of asset discovery run
1607
1944
  class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
1608
1945
  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.46.0"
19
+ GEM_VERSION = "0.47.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 = "20230329"
25
+ REVISION = "20230414"
26
26
  end
27
27
  end
28
28
  end
@@ -142,6 +142,12 @@ module Google
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
+ class Expr
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
145
151
  class File
146
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
153
 
@@ -184,6 +190,24 @@ module Google
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class GoogleCloudSecuritycenterV1CustomConfig
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class GoogleCloudSecuritycenterV1CustomOutputSpec
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
187
211
  class GoogleCloudSecuritycenterV1ExternalSystem
188
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
213
 
@@ -202,18 +226,36 @@ module Google
202
226
  include Google::Apis::Core::JsonObjectSupport
203
227
  end
204
228
 
229
+ class GoogleCloudSecuritycenterV1Property
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
205
235
  class GoogleCloudSecuritycenterV1Resource
206
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
237
 
208
238
  include Google::Apis::Core::JsonObjectSupport
209
239
  end
210
240
 
241
+ class GoogleCloudSecuritycenterV1ResourceSelector
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
211
247
  class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
212
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
249
 
214
250
  include Google::Apis::Core::JsonObjectSupport
215
251
  end
216
252
 
253
+ class GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
217
259
  class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
218
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
261
 
@@ -618,6 +660,16 @@ module Google
618
660
  end
619
661
  end
620
662
 
663
+ class Expr
664
+ # @private
665
+ class Representation < Google::Apis::Core::JsonRepresentation
666
+ property :description, as: 'description'
667
+ property :expression, as: 'expression'
668
+ property :location, as: 'location'
669
+ property :title, as: 'title'
670
+ end
671
+ end
672
+
621
673
  class File
622
674
  # @private
623
675
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -740,6 +792,40 @@ module Google
740
792
  end
741
793
  end
742
794
 
795
+ class GoogleCloudSecuritycenterV1CustomConfig
796
+ # @private
797
+ class Representation < Google::Apis::Core::JsonRepresentation
798
+ property :custom_output, as: 'customOutput', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomOutputSpec, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomOutputSpec::Representation
799
+
800
+ property :description, as: 'description'
801
+ property :predicate, as: 'predicate', class: Google::Apis::SecuritycenterV1beta2::Expr, decorator: Google::Apis::SecuritycenterV1beta2::Expr::Representation
802
+
803
+ property :recommendation, as: 'recommendation'
804
+ property :resource_selector, as: 'resourceSelector', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ResourceSelector, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1ResourceSelector::Representation
805
+
806
+ property :severity, as: 'severity'
807
+ end
808
+ end
809
+
810
+ class GoogleCloudSecuritycenterV1CustomOutputSpec
811
+ # @private
812
+ class Representation < Google::Apis::Core::JsonRepresentation
813
+ collection :properties, as: 'properties', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Property, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Property::Representation
814
+
815
+ end
816
+ end
817
+
818
+ class GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule
819
+ # @private
820
+ class Representation < Google::Apis::Core::JsonRepresentation
821
+ property :custom_config, as: 'customConfig', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomConfig, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomConfig::Representation
822
+
823
+ property :display_name, as: 'displayName'
824
+ property :enablement_state, as: 'enablementState'
825
+ property :name, as: 'name'
826
+ end
827
+ end
828
+
743
829
  class GoogleCloudSecuritycenterV1ExternalSystem
744
830
  # @private
745
831
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -775,6 +861,15 @@ module Google
775
861
  end
776
862
  end
777
863
 
864
+ class GoogleCloudSecuritycenterV1Property
865
+ # @private
866
+ class Representation < Google::Apis::Core::JsonRepresentation
867
+ property :name, as: 'name'
868
+ property :value_expression, as: 'valueExpression', class: Google::Apis::SecuritycenterV1beta2::Expr, decorator: Google::Apis::SecuritycenterV1beta2::Expr::Representation
869
+
870
+ end
871
+ end
872
+
778
873
  class GoogleCloudSecuritycenterV1Resource
779
874
  # @private
780
875
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -790,6 +885,13 @@ module Google
790
885
  end
791
886
  end
792
887
 
888
+ class GoogleCloudSecuritycenterV1ResourceSelector
889
+ # @private
890
+ class Representation < Google::Apis::Core::JsonRepresentation
891
+ collection :resource_types, as: 'resourceTypes'
892
+ end
893
+ end
894
+
793
895
  class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
794
896
  # @private
795
897
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -798,6 +900,20 @@ module Google
798
900
  end
799
901
  end
800
902
 
903
+ class GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
904
+ # @private
905
+ class Representation < Google::Apis::Core::JsonRepresentation
906
+ property :ancestor_module, as: 'ancestorModule'
907
+ property :custom_config, as: 'customConfig', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomConfig, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1CustomConfig::Representation
908
+
909
+ property :display_name, as: 'displayName'
910
+ property :enablement_state, as: 'enablementState'
911
+ property :last_editor, as: 'lastEditor'
912
+ property :name, as: 'name'
913
+ property :update_time, as: 'updateTime'
914
+ end
915
+ end
916
+
801
917
  class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
802
918
  # @private
803
919
  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.46.0
4
+ version: 0.47.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-04-02 00:00:00.000000000 Z
11
+ date: 2023-04-23 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.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1beta2/v0.47.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: []