Skip to content

Commit 7b6eec5

Browse files
committed
Add auto grouping apis.
1 parent 212798b commit 7b6eec5

File tree

4 files changed

+213
-16
lines changed

4 files changed

+213
-16
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.8.2246 - 2025-3-3
4+
- Add auto grouping apis.
5+
6+
37
## 1.8.2245 - 2025-2-11
48
- Generated 2020-06-01 for `SWAS-OPEN`.
59

src/Release.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Release
1616
/**
1717
* Version of the SDK
1818
*/
19-
const VERSION = '1.8.2245';
19+
const VERSION = '1.8.2246';
2020

2121
/**
2222
* @param Event $event

src/ResourceManager/V20200331/ResourceManagerApiResolver.php

+207-14
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* @method CancelPromoteResourceAccount cancelPromoteResourceAccount(array $options = [])
1616
* @method ChangeAccountEmail changeAccountEmail(array $options = [])
1717
* @method CheckAccountDelete checkAccountDelete(array $options = [])
18+
* @method CreateAutoGroupingRule createAutoGroupingRule(array $options = [])
1819
* @method CreateCloudAccount createCloudAccount(array $options = [])
1920
* @method CreateControlPolicy createControlPolicy(array $options = [])
2021
* @method CreateFolder createFolder(array $options = [])
@@ -26,6 +27,7 @@
2627
* @method CreateServiceLinkedRole createServiceLinkedRole(array $options = [])
2728
* @method DeclineHandshake declineHandshake(array $options = [])
2829
* @method DeleteAccount deleteAccount(array $options = [])
30+
* @method DeleteAutoGroupingRule deleteAutoGroupingRule(array $options = [])
2931
* @method DeleteControlPolicy deleteControlPolicy(array $options = [])
3032
* @method DeleteFolder deleteFolder(array $options = [])
3133
* @method DeletePolicy deletePolicy(array $options = [])
@@ -37,12 +39,18 @@
3739
* @method DestroyResourceDirectory destroyResourceDirectory(array $options = [])
3840
* @method DetachControlPolicy detachControlPolicy(array $options = [])
3941
* @method DetachPolicy detachPolicy(array $options = [])
42+
* @method DisableAssociatedTransfer disableAssociatedTransfer(array $options = [])
43+
* @method DisableAutoGrouping disableAutoGrouping(array $options = [])
4044
* @method DisableControlPolicy disableControlPolicy(array $options = [])
45+
* @method EnableAssociatedTransfer enableAssociatedTransfer(array $options = [])
46+
* @method EnableAutoGrouping enableAutoGrouping(array $options = [])
4147
* @method EnableControlPolicy enableControlPolicy(array $options = [])
4248
* @method EnableResourceDirectory enableResourceDirectory(array $options = [])
4349
* @method GetAccount getAccount(array $options = [])
4450
* @method GetAccountDeletionCheckResult getAccountDeletionCheckResult(array $options = [])
4551
* @method GetAccountDeletionStatus getAccountDeletionStatus(array $options = [])
52+
* @method GetAutoGroupingRule getAutoGroupingRule(array $options = [])
53+
* @method GetAutoGroupingStatus getAutoGroupingStatus(array $options = [])
4654
* @method GetControlPolicy getControlPolicy(array $options = [])
4755
* @method GetControlPolicyEnablementStatus getControlPolicyEnablementStatus(array $options = [])
4856
* @method GetFolder getFolder(array $options = [])
@@ -59,6 +67,8 @@
5967
* @method ListAccounts listAccounts(array $options = [])
6068
* @method ListAccountsForParent listAccountsForParent(array $options = [])
6169
* @method ListAncestors listAncestors(array $options = [])
70+
* @method ListAssociatedTransferSetting listAssociatedTransferSetting(array $options = [])
71+
* @method ListAutoGroupingRules listAutoGroupingRules(array $options = [])
6272
* @method ListControlPolicies listControlPolicies(array $options = [])
6373
* @method ListControlPolicyAttachmentsForTarget listControlPolicyAttachmentsForTarget(array $options = [])
6474
* @method ListDelegatedAdministrators listDelegatedAdministrators(array $options = [])
@@ -92,6 +102,9 @@
92102
* @method TagResources tagResources(array $options = [])
93103
* @method UntagResources untagResources(array $options = [])
94104
* @method UpdateAccount updateAccount(array $options = [])
105+
* @method UpdateAssociatedTransferSetting updateAssociatedTransferSetting(array $options = [])
106+
* @method UpdateAutoGroupingConfig updateAutoGroupingConfig(array $options = [])
107+
* @method UpdateAutoGroupingRule updateAutoGroupingRule(array $options = [])
95108
* @method UpdateControlPolicy updateControlPolicy(array $options = [])
96109
* @method UpdateFolder updateFolder(array $options = [])
97110
* @method UpdateResourceGroup updateResourceGroup(array $options = [])
@@ -114,6 +127,9 @@ class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
114127

115128
/** @var string */
116129
protected $scheme = 'https';
130+
131+
/** @var string */
132+
public $serviceCode = 'resourcemanager';
117133
}
118134

119135
/**
@@ -135,12 +151,12 @@ class AttachControlPolicy extends Rpc
135151
}
136152

137153
/**
154+
* @method string getResourceGroupId()
155+
* @method $this withResourceGroupId($value)
138156
* @method string getPolicyType()
139157
* @method $this withPolicyType($value)
140158
* @method string getPrincipalType()
141159
* @method $this withPrincipalType($value)
142-
* @method string getResourceGroupId()
143-
* @method $this withResourceGroupId($value)
144160
* @method string getPolicyName()
145161
* @method $this withPolicyName($value)
146162
* @method string getPrincipalName()
@@ -212,6 +228,55 @@ class CheckAccountDelete extends Rpc
212228
{
213229
}
214230

231+
/**
232+
* @method string getRuleDesc()
233+
* @method $this withRuleDesc($value)
234+
* @method string getResourceTypesScope()
235+
* @method $this withResourceTypesScope($value)
236+
* @method string getRuleName()
237+
* @method $this withRuleName($value)
238+
* @method string getExcludeResourceGroupIdsScope()
239+
* @method $this withExcludeResourceGroupIdsScope($value)
240+
* @method string getRegionIdsScope()
241+
* @method $this withRegionIdsScope($value)
242+
* @method string getResourceIdsScope()
243+
* @method $this withResourceIdsScope($value)
244+
* @method array getRuleContents()
245+
* @method string getExcludeResourceTypesScope()
246+
* @method $this withExcludeResourceTypesScope($value)
247+
* @method string getRuleType()
248+
* @method $this withRuleType($value)
249+
* @method string getResourceGroupIdsScope()
250+
* @method $this withResourceGroupIdsScope($value)
251+
* @method string getExcludeRegionIdsScope()
252+
* @method $this withExcludeRegionIdsScope($value)
253+
* @method string getExcludeResourceIdsScope()
254+
* @method $this withExcludeResourceIdsScope($value)
255+
*/
256+
class CreateAutoGroupingRule extends Rpc
257+
{
258+
259+
/**
260+
* @param array $ruleContents
261+
*
262+
* @return $this
263+
*/
264+
public function withRuleContents(array $ruleContents)
265+
{
266+
$this->data['RuleContents'] = $ruleContents;
267+
foreach ($ruleContents as $depth1 => $depth1Value) {
268+
if(isset($depth1Value['TargetResourceGroupCondition'])){
269+
$this->options['query']['RuleContents.' . ($depth1 + 1) . '.TargetResourceGroupCondition'] = $depth1Value['TargetResourceGroupCondition'];
270+
}
271+
if(isset($depth1Value['AutoGroupingScopeCondition'])){
272+
$this->options['query']['RuleContents.' . ($depth1 + 1) . '.AutoGroupingScopeCondition'] = $depth1Value['AutoGroupingScopeCondition'];
273+
}
274+
}
275+
276+
return $this;
277+
}
278+
}
279+
215280
/**
216281
* @method string getParentFolderId()
217282
* @method $this withParentFolderId($value)
@@ -297,6 +362,8 @@ class CreateResourceAccount extends Rpc
297362
* @method $this withDisplayName($value)
298363
* @method string getName()
299364
* @method $this withName($value)
365+
* @method string getTag()
366+
* @method $this withTag($value)
300367
*/
301368
class CreateResourceGroup extends Rpc
302369
{
@@ -346,6 +413,14 @@ class DeleteAccount extends Rpc
346413
{
347414
}
348415

416+
/**
417+
* @method string getRuleId()
418+
* @method $this withRuleId($value)
419+
*/
420+
class DeleteAutoGroupingRule extends Rpc
421+
{
422+
}
423+
349424
/**
350425
* @method string getPolicyId()
351426
* @method $this withPolicyId($value)
@@ -435,12 +510,12 @@ class DetachControlPolicy extends Rpc
435510
}
436511

437512
/**
513+
* @method string getResourceGroupId()
514+
* @method $this withResourceGroupId($value)
438515
* @method string getPolicyType()
439516
* @method $this withPolicyType($value)
440517
* @method string getPrincipalType()
441518
* @method $this withPrincipalType($value)
442-
* @method string getResourceGroupId()
443-
* @method $this withResourceGroupId($value)
444519
* @method string getPolicyName()
445520
* @method $this withPolicyName($value)
446521
* @method string getPrincipalName()
@@ -450,10 +525,26 @@ class DetachPolicy extends Rpc
450525
{
451526
}
452527

528+
class DisableAssociatedTransfer extends Rpc
529+
{
530+
}
531+
532+
class DisableAutoGrouping extends Rpc
533+
{
534+
}
535+
453536
class DisableControlPolicy extends Rpc
454537
{
455538
}
456539

540+
class EnableAssociatedTransfer extends Rpc
541+
{
542+
}
543+
544+
class EnableAutoGrouping extends Rpc
545+
{
546+
}
547+
457548
class EnableControlPolicy extends Rpc
458549
{
459550
}
@@ -498,6 +589,18 @@ class GetAccountDeletionStatus extends Rpc
498589
{
499590
}
500591

592+
/**
593+
* @method string getRuleId()
594+
* @method $this withRuleId($value)
595+
*/
596+
class GetAutoGroupingRule extends Rpc
597+
{
598+
}
599+
600+
class GetAutoGroupingStatus extends Rpc
601+
{
602+
}
603+
501604
/**
502605
* @method string getLanguage()
503606
* @method $this withLanguage($value)
@@ -628,18 +731,18 @@ class ListAccounts extends Rpc
628731
}
629732

630733
/**
631-
* @method string getQueryKeyword()
632-
* @method $this withQueryKeyword($value)
633734
* @method string getPageNumber()
634735
* @method $this withPageNumber($value)
635-
* @method string getParentFolderId()
636-
* @method $this withParentFolderId($value)
637-
* @method string getIncludeTags()
638-
* @method $this withIncludeTags($value)
639736
* @method string getPageSize()
640737
* @method $this withPageSize($value)
641738
* @method string getTag()
642739
* @method $this withTag($value)
740+
* @method string getQueryKeyword()
741+
* @method $this withQueryKeyword($value)
742+
* @method string getParentFolderId()
743+
* @method $this withParentFolderId($value)
744+
* @method string getIncludeTags()
745+
* @method $this withIncludeTags($value)
643746
*/
644747
class ListAccountsForParent extends Rpc
645748
{
@@ -653,6 +756,26 @@ class ListAncestors extends Rpc
653756
{
654757
}
655758

759+
class ListAssociatedTransferSetting extends Rpc
760+
{
761+
}
762+
763+
/**
764+
* @method string getRuleName()
765+
* @method $this withRuleName($value)
766+
* @method string getNextToken()
767+
* @method $this withNextToken($value)
768+
* @method string getRuleType()
769+
* @method $this withRuleType($value)
770+
* @method string getMaxResults()
771+
* @method $this withMaxResults($value)
772+
* @method string getRuleId()
773+
* @method $this withRuleId($value)
774+
*/
775+
class ListAutoGroupingRules extends Rpc
776+
{
777+
}
778+
656779
/**
657780
* @method string getPolicyType()
658781
* @method $this withPolicyType($value)
@@ -858,16 +981,16 @@ class ListTagKeys extends Rpc
858981
}
859982

860983
/**
984+
* @method string getNextToken()
985+
* @method $this withNextToken($value)
986+
* @method string getTag()
987+
* @method $this withTag($value)
861988
* @method string getResourceId()
862989
* @method $this withResourceId($value)
863990
* @method string getResourceType()
864991
* @method $this withResourceType($value)
865-
* @method string getNextToken()
866-
* @method $this withNextToken($value)
867992
* @method string getMaxResults()
868993
* @method $this withMaxResults($value)
869-
* @method string getTag()
870-
* @method $this withTag($value)
871994
*/
872995
class ListTagResources extends Rpc
873996
{
@@ -1065,6 +1188,76 @@ class UpdateAccount extends Rpc
10651188
{
10661189
}
10671190

1191+
/**
1192+
* @method string getRuleSettings()
1193+
* @method $this withRuleSettings($value)
1194+
* @method string getEnableExistingResourcesTransfer()
1195+
* @method $this withEnableExistingResourcesTransfer($value)
1196+
*/
1197+
class UpdateAssociatedTransferSetting extends Rpc
1198+
{
1199+
}
1200+
1201+
/**
1202+
* @method string getEnableExistingResourcesTransfer()
1203+
* @method $this withEnableExistingResourcesTransfer($value)
1204+
*/
1205+
class UpdateAutoGroupingConfig extends Rpc
1206+
{
1207+
}
1208+
1209+
/**
1210+
* @method string getRuleDesc()
1211+
* @method $this withRuleDesc($value)
1212+
* @method string getResourceTypesScope()
1213+
* @method $this withResourceTypesScope($value)
1214+
* @method string getRuleName()
1215+
* @method $this withRuleName($value)
1216+
* @method string getExcludeResourceGroupIdsScope()
1217+
* @method $this withExcludeResourceGroupIdsScope($value)
1218+
* @method string getRegionIdsScope()
1219+
* @method $this withRegionIdsScope($value)
1220+
* @method string getResourceIdsScope()
1221+
* @method $this withResourceIdsScope($value)
1222+
* @method array getRuleContents()
1223+
* @method string getExcludeResourceTypesScope()
1224+
* @method $this withExcludeResourceTypesScope($value)
1225+
* @method string getResourceGroupIdsScope()
1226+
* @method $this withResourceGroupIdsScope($value)
1227+
* @method string getExcludeRegionIdsScope()
1228+
* @method $this withExcludeRegionIdsScope($value)
1229+
* @method string getExcludeResourceIdsScope()
1230+
* @method $this withExcludeResourceIdsScope($value)
1231+
* @method string getRuleId()
1232+
* @method $this withRuleId($value)
1233+
*/
1234+
class UpdateAutoGroupingRule extends Rpc
1235+
{
1236+
1237+
/**
1238+
* @param array $ruleContents
1239+
*
1240+
* @return $this
1241+
*/
1242+
public function withRuleContents(array $ruleContents)
1243+
{
1244+
$this->data['RuleContents'] = $ruleContents;
1245+
foreach ($ruleContents as $depth1 => $depth1Value) {
1246+
if(isset($depth1Value['RuleContentId'])){
1247+
$this->options['query']['RuleContents.' . ($depth1 + 1) . '.RuleContentId'] = $depth1Value['RuleContentId'];
1248+
}
1249+
if(isset($depth1Value['TargetResourceGroupCondition'])){
1250+
$this->options['query']['RuleContents.' . ($depth1 + 1) . '.TargetResourceGroupCondition'] = $depth1Value['TargetResourceGroupCondition'];
1251+
}
1252+
if(isset($depth1Value['AutoGroupingScopeCondition'])){
1253+
$this->options['query']['RuleContents.' . ($depth1 + 1) . '.AutoGroupingScopeCondition'] = $depth1Value['AutoGroupingScopeCondition'];
1254+
}
1255+
}
1256+
1257+
return $this;
1258+
}
1259+
}
1260+
10681261
/**
10691262
* @method string getNewPolicyName()
10701263
* @method $this withNewPolicyName($value)

src/endpoints.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"endpoint_map":{},"endpoint_regional":"central","standard":{"cn-hangzhou":"cloudauth.aliyuncs.com","ap-northeast-1":"cloudauth.aliyuncs.com","ap-south-1":"cloudauth.aliyuncs.com","ap-southeast-1":"cloudauth.aliyuncs.com","ap-southeast-2":"cloudauth.aliyuncs.com","ap-southeast-3":"cloudauth.aliyuncs.com","ap-southeast-5":"cloudauth.aliyuncs.com","cn-beijing":"cloudauth.aliyuncs.com","cn-chengdu":"cloudauth.aliyuncs.com","cn-hongkong":"cloudauth.aliyuncs.com","cn-huhehaote":"cloudauth.aliyuncs.com","cn-qingdao":"cloudauth.aliyuncs.com","cn-shanghai":"cloudauth.aliyuncs.com","cn-shenzhen":"cloudauth.aliyuncs.com","cn-zhangjiakou":"cloudauth.aliyuncs.com","eu-central-1":"cloudauth.aliyuncs.com","eu-west-1":"cloudauth.aliyuncs.com","me-east-1":"cloudauth.aliyuncs.com","us-east-1":"cloudauth.aliyuncs.com","us-west-1":"cloudauth.aliyuncs.com","cn-hangzhou-finance":"cloudauth.aliyuncs.com","cn-shenzhen-finance-1":"cloudauth.aliyuncs.com","cn-shanghai-finance-1":"cloudauth.aliyuncs.com","cn-north-2-gov-1":"cloudauth.aliyuncs.com"},"regions":["cn-hangzhou","ap-northeast-1","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ap-southeast-5","cn-beijing","cn-chengdu","cn-hongkong","cn-huhehaote","cn-qingdao","cn-shanghai","cn-shenzhen","cn-zhangjiakou","eu-central-1","eu-west-1","me-east-1","us-east-1","us-west-1","cn-hangzhou-finance","cn-shenzhen-finance-1","cn-shanghai-finance-1","cn-north-2-gov-1"],"endpoint_health":[]}
1+
{"endpoint_map":{},"endpoint_regional":"central","standard":{"cn-hangzhou":"resourcemanager.aliyuncs.com","cn-shanghai":"resourcemanager.aliyuncs.com"},"regions":["cn-hangzhou","cn-shanghai","ap-northeast-1","ap-northeast-2-pop","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ap-southeast-5","cn-beijing","cn-beijing-finance-1","cn-beijing-finance-pop","cn-beijing-gov-1","cn-beijing-nu16-b01","cn-chengdu","cn-edge-1","cn-fujian","cn-haidian-cm12-c01","cn-hangzhou-bj-b01","cn-hangzhou-finance","cn-hangzhou-internal-prod-1","cn-hangzhou-internal-test-1","cn-hangzhou-internal-test-2","cn-hangzhou-internal-test-3","cn-hangzhou-test-306","cn-hongkong","cn-hongkong-finance-pop","cn-huhehaote","cn-huhehaote-nebula-1","cn-north-2-gov-1","cn-qingdao","cn-qingdao-nebula","cn-shanghai-et15-b01","cn-shanghai-et2-b01","cn-shanghai-finance-1","cn-shanghai-inner","cn-shanghai-internal-test-1","cn-shenzhen","cn-shenzhen-finance-1","cn-shenzhen-inner","cn-shenzhen-st4-d01","cn-shenzhen-su18-b01","cn-wuhan","cn-wulanchabu","cn-yushanfang","cn-zhangbei","cn-zhangbei-na61-b01","cn-zhangjiakou","cn-zhangjiakou-na62-a01","cn-zhengzhou-nebula-1","eu-central-1","eu-west-1","eu-west-1-oxs","me-east-1","rus-west-1-pop","us-east-1","us-west-1"],"endpoint_health":[]}

0 commit comments

Comments
 (0)