From 2290dcd117b77aaa0ff6a13a19334322beb76a64 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 20 Oct 2024 18:08:24 -0700 Subject: [PATCH] Regenerate workloadmanager client (#5739) Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-php-client-services/actions/workflows/codegen.yaml --- src/WorkloadManager/Execution.php | 18 ++- src/WorkloadManager/RuleExecutionResult.php | 116 ++++++++++++++++++++ 2 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 src/WorkloadManager/RuleExecutionResult.php diff --git a/src/WorkloadManager/Execution.php b/src/WorkloadManager/Execution.php index 864948da41..a84bcdff83 100644 --- a/src/WorkloadManager/Execution.php +++ b/src/WorkloadManager/Execution.php @@ -19,7 +19,7 @@ class Execution extends \Google\Collection { - protected $collection_key = 'externalDataSources'; + protected $collection_key = 'ruleResults'; /** * @var string */ @@ -42,6 +42,8 @@ class Execution extends \Google\Collection * @var string */ public $name; + protected $ruleResultsType = RuleExecutionResult::class; + protected $ruleResultsDataType = 'array'; /** * @var string */ @@ -139,6 +141,20 @@ public function getName() { return $this->name; } + /** + * @param RuleExecutionResult[] + */ + public function setRuleResults($ruleResults) + { + $this->ruleResults = $ruleResults; + } + /** + * @return RuleExecutionResult[] + */ + public function getRuleResults() + { + return $this->ruleResults; + } /** * @param string */ diff --git a/src/WorkloadManager/RuleExecutionResult.php b/src/WorkloadManager/RuleExecutionResult.php new file mode 100644 index 0000000000..030dcced65 --- /dev/null +++ b/src/WorkloadManager/RuleExecutionResult.php @@ -0,0 +1,116 @@ +message = $message; + } + /** + * @return string + */ + public function getMessage() + { + return $this->message; + } + /** + * @param string + */ + public function setResultCount($resultCount) + { + $this->resultCount = $resultCount; + } + /** + * @return string + */ + public function getResultCount() + { + return $this->resultCount; + } + /** + * @param string + */ + public function setRule($rule) + { + $this->rule = $rule; + } + /** + * @return string + */ + public function getRule() + { + return $this->rule; + } + /** + * @param string + */ + public function setScannedResourceCount($scannedResourceCount) + { + $this->scannedResourceCount = $scannedResourceCount; + } + /** + * @return string + */ + public function getScannedResourceCount() + { + return $this->scannedResourceCount; + } + /** + * @param string + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return string + */ + public function getState() + { + return $this->state; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RuleExecutionResult::class, 'Google_Service_WorkloadManager_RuleExecutionResult');