From 5a671ff040d55cec7b69b88d84c91bd8867d1c8e Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 27 Oct 2024 18:10:22 -0700 Subject: [PATCH] Regenerate workloadmanager client (#5780) Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-php-client-services/actions/workflows/codegen.yaml --- src/WorkloadManager/Execution.php | 16 +++++++++++ src/WorkloadManager/Notice.php | 44 +++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 src/WorkloadManager/Notice.php diff --git a/src/WorkloadManager/Execution.php b/src/WorkloadManager/Execution.php index a84bcdff83..688624f3b6 100644 --- a/src/WorkloadManager/Execution.php +++ b/src/WorkloadManager/Execution.php @@ -42,6 +42,8 @@ class Execution extends \Google\Collection * @var string */ public $name; + protected $noticesType = Notice::class; + protected $noticesDataType = 'array'; protected $ruleResultsType = RuleExecutionResult::class; protected $ruleResultsDataType = 'array'; /** @@ -141,6 +143,20 @@ public function getName() { return $this->name; } + /** + * @param Notice[] + */ + public function setNotices($notices) + { + $this->notices = $notices; + } + /** + * @return Notice[] + */ + public function getNotices() + { + return $this->notices; + } /** * @param RuleExecutionResult[] */ diff --git a/src/WorkloadManager/Notice.php b/src/WorkloadManager/Notice.php new file mode 100644 index 0000000000..557b4fe394 --- /dev/null +++ b/src/WorkloadManager/Notice.php @@ -0,0 +1,44 @@ +message = $message; + } + /** + * @return string + */ + public function getMessage() + { + return $this->message; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Notice::class, 'Google_Service_WorkloadManager_Notice');