Skip to content

Commit

Permalink
Regenerate workloadmanager client (#5739)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Oct 21, 2024
1 parent ea46a96 commit 2290dcd
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/WorkloadManager/Execution.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class Execution extends \Google\Collection
{
protected $collection_key = 'externalDataSources';
protected $collection_key = 'ruleResults';
/**
* @var string
*/
Expand All @@ -42,6 +42,8 @@ class Execution extends \Google\Collection
* @var string
*/
public $name;
protected $ruleResultsType = RuleExecutionResult::class;
protected $ruleResultsDataType = 'array';
/**
* @var string
*/
Expand Down Expand Up @@ -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
*/
Expand Down
116 changes: 116 additions & 0 deletions src/WorkloadManager/RuleExecutionResult.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\WorkloadManager;

class RuleExecutionResult extends \Google\Model
{
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $resultCount;
/**
* @var string
*/
public $rule;
/**
* @var string
*/
public $scannedResourceCount;
/**
* @var string
*/
public $state;

/**
* @param string
*/
public function setMessage($message)
{
$this->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');

0 comments on commit 2290dcd

Please sign in to comment.