Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alb addEntriesToAcl() bug fix #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion src/Alb/V20200616/AlbApiResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

/**
Expand Down