From a203ee02712e9d6bb88832f9ab23878a7467dc21 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 21 Jun 2024 07:59:40 -0700 Subject: [PATCH] feat: add `TOXIC_COMBINATION` to `FindingClass` enum (#7460) feat: add `show_eligible_modules_only` field to `GetSecurityCenterServiceRequest` message PiperOrigin-RevId: 645021726 Source-Link: https://github.com/googleapis/googleapis/commit/f98e2a398203dbdb5339066d29e978a6c2009890 Source-Link: https://github.com/googleapis/googleapis-gen/commit/97d3eaf8020d150b4db5f95c47a71109808e72ee Copy-Tag: eyJwIjoiU2VjdXJpdHlDZW50ZXJNYW5hZ2VtZW50Ly5Pd2xCb3QueWFtbCIsImgiOiI5N2QzZWFmODAyMGQxNTBiNGRiNWY5NWM0N2E3MTEwOTgwOGU3MmVlIn0= --- .../metadata/V1/SecurityCenterManagement.php | Bin 27513 -> 27609 bytes .../V1/GetSecurityCenterServiceRequest.php | 38 ++++++++++++++++++ .../V1/ListSecurityCenterServicesRequest.php | 38 ++++++++++++++++++ .../src/V1/SimulatedFinding/FindingClass.php | 8 ++++ 4 files changed, 84 insertions(+) diff --git a/SecurityCenterManagement/metadata/V1/SecurityCenterManagement.php b/SecurityCenterManagement/metadata/V1/SecurityCenterManagement.php index efa5fe1323a75637bf026567c31f92bfe731d0ac..808d65fa8dab614efa5872d2d6e9c83c9ec7106c 100644 GIT binary patch delta 173 zcmex)jq&Dn#tp43tbfija(Pbl_S}4#<-8127w6_BiqDxCH%#tPnI$eH$|V@$AK~d7 z@9gjE2#tp43taHvXa(Pbl_S}4#<-82jXO7KF6rVFO&Yaw%GHbJ~YPJ}28JGNI u!xZ_+r>#Rdl~yxyDf(mstring name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ protected $name = ''; + /** + * Flag that, when set, will be used to filter the ModuleSettings that are + * in scope. The default setting is that all modules will be shown. + * + * Generated from protobuf field bool show_eligible_modules_only = 2; + */ + protected $show_eligible_modules_only = false; /** * @param string $name Required. The Security Command Center service to retrieve. @@ -78,6 +85,9 @@ public static function build(string $name): self * * security-health-analytics * * vm-threat-detection * * web-security-scanner + * @type bool $show_eligible_modules_only + * Flag that, when set, will be used to filter the ModuleSettings that are + * in scope. The default setting is that all modules will be shown. * } */ public function __construct($data = NULL) { @@ -131,5 +141,33 @@ public function setName($var) return $this; } + /** + * Flag that, when set, will be used to filter the ModuleSettings that are + * in scope. The default setting is that all modules will be shown. + * + * Generated from protobuf field bool show_eligible_modules_only = 2; + * @return bool + */ + public function getShowEligibleModulesOnly() + { + return $this->show_eligible_modules_only; + } + + /** + * Flag that, when set, will be used to filter the ModuleSettings that are + * in scope. The default setting is that all modules will be shown. + * + * Generated from protobuf field bool show_eligible_modules_only = 2; + * @param bool $var + * @return $this + */ + public function setShowEligibleModulesOnly($var) + { + GPBUtil::checkBool($var); + $this->show_eligible_modules_only = $var; + + return $this; + } + } diff --git a/SecurityCenterManagement/src/V1/ListSecurityCenterServicesRequest.php b/SecurityCenterManagement/src/V1/ListSecurityCenterServicesRequest.php index c4a0cd81d3af..19c23c940772 100644 --- a/SecurityCenterManagement/src/V1/ListSecurityCenterServicesRequest.php +++ b/SecurityCenterManagement/src/V1/ListSecurityCenterServicesRequest.php @@ -38,6 +38,13 @@ class ListSecurityCenterServicesRequest extends \Google\Protobuf\Internal\Messag * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; */ protected $page_token = ''; + /** + * Flag that, when set, will be used to filter the ModuleSettings that are + * in scope. The default setting is that all modules will be shown. + * + * Generated from protobuf field bool show_eligible_modules_only = 4; + */ + protected $show_eligible_modules_only = false; /** * @param string $parent Required. The name of the parent to list Security Command Center services. @@ -76,6 +83,9 @@ public static function build(string $parent): self * Default is 10, minimum is 1, maximum is 1000. * @type string $page_token * Optional. The value returned by the last call indicating a continuation. + * @type bool $show_eligible_modules_only + * Flag that, when set, will be used to filter the ModuleSettings that are + * in scope. The default setting is that all modules will be shown. * } */ public function __construct($data = NULL) { @@ -171,5 +181,33 @@ public function setPageToken($var) return $this; } + /** + * Flag that, when set, will be used to filter the ModuleSettings that are + * in scope. The default setting is that all modules will be shown. + * + * Generated from protobuf field bool show_eligible_modules_only = 4; + * @return bool + */ + public function getShowEligibleModulesOnly() + { + return $this->show_eligible_modules_only; + } + + /** + * Flag that, when set, will be used to filter the ModuleSettings that are + * in scope. The default setting is that all modules will be shown. + * + * Generated from protobuf field bool show_eligible_modules_only = 4; + * @param bool $var + * @return $this + */ + public function setShowEligibleModulesOnly($var) + { + GPBUtil::checkBool($var); + $this->show_eligible_modules_only = $var; + + return $this; + } + } diff --git a/SecurityCenterManagement/src/V1/SimulatedFinding/FindingClass.php b/SecurityCenterManagement/src/V1/SimulatedFinding/FindingClass.php index 59a0f18fdbaa..bbbf233602ea 100644 --- a/SecurityCenterManagement/src/V1/SimulatedFinding/FindingClass.php +++ b/SecurityCenterManagement/src/V1/SimulatedFinding/FindingClass.php @@ -58,6 +58,13 @@ class FindingClass * Generated from protobuf enum POSTURE_VIOLATION = 6; */ const POSTURE_VIOLATION = 6; + /** + * Describes a combination of security issues that represent a more severe + * security problem when taken together. + * + * Generated from protobuf enum TOXIC_COMBINATION = 7; + */ + const TOXIC_COMBINATION = 7; private static $valueToName = [ self::FINDING_CLASS_UNSPECIFIED => 'FINDING_CLASS_UNSPECIFIED', @@ -67,6 +74,7 @@ class FindingClass self::OBSERVATION => 'OBSERVATION', self::SCC_ERROR => 'SCC_ERROR', self::POSTURE_VIOLATION => 'POSTURE_VIOLATION', + self::TOXIC_COMBINATION => 'TOXIC_COMBINATION', ]; public static function name($value)