From affa443a280780f7c5ddbf2ad455b96b029858b3 Mon Sep 17 00:00:00 2001 From: linwei Date: Mon, 18 Sep 2023 17:26:03 +0800 Subject: [PATCH] bug fix --- src/Alb/V20200616/AlbApiResolver.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/Alb/V20200616/AlbApiResolver.php b/src/Alb/V20200616/AlbApiResolver.php index 5f221cbd3..5d7dcb9e0 100644 --- a/src/Alb/V20200616/AlbApiResolver.php +++ b/src/Alb/V20200616/AlbApiResolver.php @@ -106,10 +106,28 @@ class Rpc extends \AlibabaCloud\Client\Resolver\Rpc * @method string getDryRun() * @method $this withDryRun($value) * @method string getAclEntries() - * @method $this withAclEntries($value) */ class AddEntriesToAcl extends Rpc { + /** + * @param array $aclEntries + * + * @return $this + */ + public function withAclEntries(array $aclEntries) + { + $this->data['AclEntries'] = $aclEntries; + foreach ($aclEntries as $depth1 => $depth1Value) { + if(isset($depth1Value['Entry'])){ + $this->options['query']['AclEntries.' . ($depth1 + 1) . '.Entry'] = $depth1Value['Entry']; + } + if(isset($depth1Value['EntryDescription'])){ + $this->options['query']['AclEntries.' . ($depth1 + 1) . '.EntryDescription'] = $depth1Value['EntryDescription']; + } + } + + return $this; + } } /**