commands = $commands; } /** * @return Command[] */ public function getCommands() { return $this->commands; } /** * The URL for the documentation of the rule. * * @param string $documentationUrl */ public function setDocumentationUrl($documentationUrl) { $this->documentationUrl = $documentationUrl; } /** * @return string */ public function getDocumentationUrl() { return $this->documentationUrl; } /** * The resource that violates the rule. * * @param WorkloadmanagerResource $resource */ public function setResource(WorkloadmanagerResource $resource) { $this->resource = $resource; } /** * @return WorkloadmanagerResource */ public function getResource() { return $this->resource; } /** * The rule that is violated in an evaluation. * * @param string $rule */ public function setRule($rule) { $this->rule = $rule; } /** * @return string */ public function getRule() { return $this->rule; } /** * The severity of violation. * * @param string $severity */ public function setSeverity($severity) { $this->severity = $severity; } /** * @return string */ public function getSeverity() { return $this->severity; } /** * Execution result type of the scanned resource. * * Accepted values: TYPE_UNSPECIFIED, TYPE_PASSED, TYPE_VIOLATED * * @param self::TYPE_* $type */ public function setType($type) { $this->type = $type; } /** * @return self::TYPE_* */ public function getType() { return $this->type; } /** * The details of violation in an evaluation result. * * @param ViolationDetails $violationDetails */ public function setViolationDetails(ViolationDetails $violationDetails) { $this->violationDetails = $violationDetails; } /** * @return ViolationDetails */ public function getViolationDetails() { return $this->violationDetails; } /** * The violation message of an execution. * * @param string $violationMessage */ public function setViolationMessage($violationMessage) { $this->violationMessage = $violationMessage; } /** * @return string */ public function getViolationMessage() { return $this->violationMessage; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ExecutionResult::class, 'Google_Service_WorkloadManager_ExecutionResult');