From 73390c019d70cadd15315a02eeea3a8d4311a0e5 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 14 Dec 2024 17:08:50 -0800 Subject: [PATCH] Regenerate workloadmanager client (#6022) Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-php-client-services/actions/workflows/codegen.yaml --- src/WorkloadManager/Evaluation.php | 18 +++ src/WorkloadManager/Execution.php | 16 +++ src/WorkloadManager/Insight.php | 16 +++ .../Resource/ProjectsLocationsOperations.php | 2 +- src/WorkloadManager/Summary.php | 80 ++++++++++++ src/WorkloadManager/TorsoValidation.php | 116 ++++++++++++++++++ 6 files changed, 247 insertions(+), 1 deletion(-) create mode 100644 src/WorkloadManager/Summary.php create mode 100644 src/WorkloadManager/TorsoValidation.php diff --git a/src/WorkloadManager/Evaluation.php b/src/WorkloadManager/Evaluation.php index 4ca18f85a5..6094be87dc 100644 --- a/src/WorkloadManager/Evaluation.php +++ b/src/WorkloadManager/Evaluation.php @@ -34,6 +34,10 @@ class Evaluation extends \Google\Collection * @var string */ public $description; + /** + * @var string + */ + public $evaluationType; /** * @var string[] */ @@ -119,6 +123,20 @@ public function getDescription() { return $this->description; } + /** + * @param string + */ + public function setEvaluationType($evaluationType) + { + $this->evaluationType = $evaluationType; + } + /** + * @return string + */ + public function getEvaluationType() + { + return $this->evaluationType; + } /** * @param string[] */ diff --git a/src/WorkloadManager/Execution.php b/src/WorkloadManager/Execution.php index 688624f3b6..ec4024530d 100644 --- a/src/WorkloadManager/Execution.php +++ b/src/WorkloadManager/Execution.php @@ -44,6 +44,8 @@ class Execution extends \Google\Collection public $name; protected $noticesType = Notice::class; protected $noticesDataType = 'array'; + protected $resultSummaryType = Summary::class; + protected $resultSummaryDataType = ''; protected $ruleResultsType = RuleExecutionResult::class; protected $ruleResultsDataType = 'array'; /** @@ -157,6 +159,20 @@ public function getNotices() { return $this->notices; } + /** + * @param Summary + */ + public function setResultSummary(Summary $resultSummary) + { + $this->resultSummary = $resultSummary; + } + /** + * @return Summary + */ + public function getResultSummary() + { + return $this->resultSummary; + } /** * @param RuleExecutionResult[] */ diff --git a/src/WorkloadManager/Insight.php b/src/WorkloadManager/Insight.php index a424ed7926..ec39f6f91d 100644 --- a/src/WorkloadManager/Insight.php +++ b/src/WorkloadManager/Insight.php @@ -33,6 +33,8 @@ class Insight extends \Google\Model public $sentTime; protected $sqlserverValidationType = SqlserverValidation::class; protected $sqlserverValidationDataType = ''; + protected $torsoValidationType = TorsoValidation::class; + protected $torsoValidationDataType = ''; /** * @param string @@ -104,6 +106,20 @@ public function getSqlserverValidation() { return $this->sqlserverValidation; } + /** + * @param TorsoValidation + */ + public function setTorsoValidation(TorsoValidation $torsoValidation) + { + $this->torsoValidation = $torsoValidation; + } + /** + * @return TorsoValidation + */ + public function getTorsoValidation() + { + return $this->torsoValidation; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/WorkloadManager/Resource/ProjectsLocationsOperations.php b/src/WorkloadManager/Resource/ProjectsLocationsOperations.php index c00dfaa3d7..2fd78576c8 100644 --- a/src/WorkloadManager/Resource/ProjectsLocationsOperations.php +++ b/src/WorkloadManager/Resource/ProjectsLocationsOperations.php @@ -40,7 +40,7 @@ class ProjectsLocationsOperations extends \Google\Service\Resource * other methods to check whether the cancellation succeeded or whether the * operation completed despite cancellation. On successful cancellation, the * operation is not deleted; instead, it becomes an operation with an - * Operation.error value with a google.rpc.Status.code of 1, corresponding to + * Operation.error value with a google.rpc.Status.code of `1`, corresponding to * `Code.CANCELLED`. (operations.cancel) * * @param string $name The name of the operation resource to be cancelled. diff --git a/src/WorkloadManager/Summary.php b/src/WorkloadManager/Summary.php new file mode 100644 index 0000000000..bab88663d9 --- /dev/null +++ b/src/WorkloadManager/Summary.php @@ -0,0 +1,80 @@ +failures = $failures; + } + /** + * @return string + */ + public function getFailures() + { + return $this->failures; + } + /** + * @param string + */ + public function setNewFailures($newFailures) + { + $this->newFailures = $newFailures; + } + /** + * @return string + */ + public function getNewFailures() + { + return $this->newFailures; + } + /** + * @param string + */ + public function setNewFixes($newFixes) + { + $this->newFixes = $newFixes; + } + /** + * @return string + */ + public function getNewFixes() + { + return $this->newFixes; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Summary::class, 'Google_Service_WorkloadManager_Summary'); diff --git a/src/WorkloadManager/TorsoValidation.php b/src/WorkloadManager/TorsoValidation.php new file mode 100644 index 0000000000..15e9cfbd79 --- /dev/null +++ b/src/WorkloadManager/TorsoValidation.php @@ -0,0 +1,116 @@ +agentVersion = $agentVersion; + } + /** + * @return string + */ + public function getAgentVersion() + { + return $this->agentVersion; + } + /** + * @param string + */ + public function setInstanceName($instanceName) + { + $this->instanceName = $instanceName; + } + /** + * @return string + */ + public function getInstanceName() + { + return $this->instanceName; + } + /** + * @param string + */ + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + /** + * @return string + */ + public function getProjectId() + { + return $this->projectId; + } + /** + * @param string[] + */ + public function setValidationDetails($validationDetails) + { + $this->validationDetails = $validationDetails; + } + /** + * @return string[] + */ + public function getValidationDetails() + { + return $this->validationDetails; + } + /** + * @param string + */ + public function setWorkloadType($workloadType) + { + $this->workloadType = $workloadType; + } + /** + * @return string + */ + public function getWorkloadType() + { + return $this->workloadType; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TorsoValidation::class, 'Google_Service_WorkloadManager_TorsoValidation');