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');