@alicloud/cs20151215 3.3.5 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +253 -10
- package/dist/client.js +1757 -1311
- package/dist/client.js.map +1 -1
- package/package.json +5 -5
- package/src/client.ts +534 -17
package/src/client.ts
CHANGED
|
@@ -1583,13 +1583,53 @@ export class CreateTriggerResponse extends $tea.Model {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|
|
1585
1585
|
|
|
1586
|
+
export class DeleteAlertContactRequest extends $tea.Model {
|
|
1587
|
+
contactIds?: number[];
|
|
1588
|
+
static names(): { [key: string]: string } {
|
|
1589
|
+
return {
|
|
1590
|
+
contactIds: 'contact_ids',
|
|
1591
|
+
};
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
static types(): { [key: string]: any } {
|
|
1595
|
+
return {
|
|
1596
|
+
contactIds: { 'type': 'array', 'itemType': 'number' },
|
|
1597
|
+
};
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
constructor(map?: { [key: string]: any }) {
|
|
1601
|
+
super(map);
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
export class DeleteAlertContactShrinkRequest extends $tea.Model {
|
|
1606
|
+
contactIdsShrink?: string;
|
|
1607
|
+
static names(): { [key: string]: string } {
|
|
1608
|
+
return {
|
|
1609
|
+
contactIdsShrink: 'contact_ids',
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
static types(): { [key: string]: any } {
|
|
1614
|
+
return {
|
|
1615
|
+
contactIdsShrink: 'string',
|
|
1616
|
+
};
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
constructor(map?: { [key: string]: any }) {
|
|
1620
|
+
super(map);
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1586
1624
|
export class DeleteAlertContactResponse extends $tea.Model {
|
|
1587
1625
|
headers?: { [key: string]: string };
|
|
1588
1626
|
statusCode?: number;
|
|
1627
|
+
body?: DeleteAlertContactResponseBody;
|
|
1589
1628
|
static names(): { [key: string]: string } {
|
|
1590
1629
|
return {
|
|
1591
1630
|
headers: 'headers',
|
|
1592
1631
|
statusCode: 'statusCode',
|
|
1632
|
+
body: 'body',
|
|
1593
1633
|
};
|
|
1594
1634
|
}
|
|
1595
1635
|
|
|
@@ -1597,6 +1637,45 @@ export class DeleteAlertContactResponse extends $tea.Model {
|
|
|
1597
1637
|
return {
|
|
1598
1638
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1599
1639
|
statusCode: 'number',
|
|
1640
|
+
body: DeleteAlertContactResponseBody,
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
constructor(map?: { [key: string]: any }) {
|
|
1645
|
+
super(map);
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
export class DeleteAlertContactGroupRequest extends $tea.Model {
|
|
1650
|
+
contactGroupIds?: number[];
|
|
1651
|
+
static names(): { [key: string]: string } {
|
|
1652
|
+
return {
|
|
1653
|
+
contactGroupIds: 'contact_group_ids',
|
|
1654
|
+
};
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
static types(): { [key: string]: any } {
|
|
1658
|
+
return {
|
|
1659
|
+
contactGroupIds: { 'type': 'array', 'itemType': 'number' },
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
constructor(map?: { [key: string]: any }) {
|
|
1664
|
+
super(map);
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
export class DeleteAlertContactGroupShrinkRequest extends $tea.Model {
|
|
1669
|
+
contactGroupIdsShrink?: string;
|
|
1670
|
+
static names(): { [key: string]: string } {
|
|
1671
|
+
return {
|
|
1672
|
+
contactGroupIdsShrink: 'contact_group_ids',
|
|
1673
|
+
};
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
static types(): { [key: string]: any } {
|
|
1677
|
+
return {
|
|
1678
|
+
contactGroupIdsShrink: 'string',
|
|
1600
1679
|
};
|
|
1601
1680
|
}
|
|
1602
1681
|
|
|
@@ -1608,10 +1687,12 @@ export class DeleteAlertContactResponse extends $tea.Model {
|
|
|
1608
1687
|
export class DeleteAlertContactGroupResponse extends $tea.Model {
|
|
1609
1688
|
headers?: { [key: string]: string };
|
|
1610
1689
|
statusCode?: number;
|
|
1690
|
+
body?: DeleteAlertContactGroupResponseBody[];
|
|
1611
1691
|
static names(): { [key: string]: string } {
|
|
1612
1692
|
return {
|
|
1613
1693
|
headers: 'headers',
|
|
1614
1694
|
statusCode: 'statusCode',
|
|
1695
|
+
body: 'body',
|
|
1615
1696
|
};
|
|
1616
1697
|
}
|
|
1617
1698
|
|
|
@@ -1619,6 +1700,7 @@ export class DeleteAlertContactGroupResponse extends $tea.Model {
|
|
|
1619
1700
|
return {
|
|
1620
1701
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1621
1702
|
statusCode: 'number',
|
|
1703
|
+
body: { 'type': 'array', 'itemType': DeleteAlertContactGroupResponseBody },
|
|
1622
1704
|
};
|
|
1623
1705
|
}
|
|
1624
1706
|
|
|
@@ -3063,6 +3145,25 @@ export class DescribeClusterNodesResponse extends $tea.Model {
|
|
|
3063
3145
|
}
|
|
3064
3146
|
}
|
|
3065
3147
|
|
|
3148
|
+
export class DescribeClusterResourcesRequest extends $tea.Model {
|
|
3149
|
+
withAddonResources?: boolean;
|
|
3150
|
+
static names(): { [key: string]: string } {
|
|
3151
|
+
return {
|
|
3152
|
+
withAddonResources: 'with_addon_resources',
|
|
3153
|
+
};
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
static types(): { [key: string]: any } {
|
|
3157
|
+
return {
|
|
3158
|
+
withAddonResources: 'boolean',
|
|
3159
|
+
};
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
constructor(map?: { [key: string]: any }) {
|
|
3163
|
+
super(map);
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3066
3167
|
export class DescribeClusterResourcesResponse extends $tea.Model {
|
|
3067
3168
|
headers?: { [key: string]: string };
|
|
3068
3169
|
statusCode?: number;
|
|
@@ -5266,15 +5367,18 @@ export class ListClusterAddonInstancesResponse extends $tea.Model {
|
|
|
5266
5367
|
}
|
|
5267
5368
|
|
|
5268
5369
|
export class ListClusterChecksRequest extends $tea.Model {
|
|
5370
|
+
target?: string;
|
|
5269
5371
|
type?: string;
|
|
5270
5372
|
static names(): { [key: string]: string } {
|
|
5271
5373
|
return {
|
|
5374
|
+
target: 'target',
|
|
5272
5375
|
type: 'type',
|
|
5273
5376
|
};
|
|
5274
5377
|
}
|
|
5275
5378
|
|
|
5276
5379
|
static types(): { [key: string]: any } {
|
|
5277
5380
|
return {
|
|
5381
|
+
target: 'string',
|
|
5278
5382
|
type: 'string',
|
|
5279
5383
|
};
|
|
5280
5384
|
}
|
|
@@ -5898,10 +6002,12 @@ export class ModifyClusterTagsResponse extends $tea.Model {
|
|
|
5898
6002
|
|
|
5899
6003
|
export class ModifyNodePoolNodeConfigRequest extends $tea.Model {
|
|
5900
6004
|
kubeletConfig?: KubeletConfig;
|
|
6005
|
+
osConfig?: ModifyNodePoolNodeConfigRequestOsConfig;
|
|
5901
6006
|
rollingPolicy?: ModifyNodePoolNodeConfigRequestRollingPolicy;
|
|
5902
6007
|
static names(): { [key: string]: string } {
|
|
5903
6008
|
return {
|
|
5904
6009
|
kubeletConfig: 'kubelet_config',
|
|
6010
|
+
osConfig: 'os_config',
|
|
5905
6011
|
rollingPolicy: 'rolling_policy',
|
|
5906
6012
|
};
|
|
5907
6013
|
}
|
|
@@ -5909,6 +6015,7 @@ export class ModifyNodePoolNodeConfigRequest extends $tea.Model {
|
|
|
5909
6015
|
static types(): { [key: string]: any } {
|
|
5910
6016
|
return {
|
|
5911
6017
|
kubeletConfig: KubeletConfig,
|
|
6018
|
+
osConfig: ModifyNodePoolNodeConfigRequestOsConfig,
|
|
5912
6019
|
rollingPolicy: ModifyNodePoolNodeConfigRequestRollingPolicy,
|
|
5913
6020
|
};
|
|
5914
6021
|
}
|
|
@@ -6487,10 +6594,12 @@ export class ResumeUpgradeClusterResponse extends $tea.Model {
|
|
|
6487
6594
|
|
|
6488
6595
|
export class RunClusterCheckRequest extends $tea.Model {
|
|
6489
6596
|
options?: { [key: string]: string };
|
|
6597
|
+
target?: string;
|
|
6490
6598
|
type?: string;
|
|
6491
6599
|
static names(): { [key: string]: string } {
|
|
6492
6600
|
return {
|
|
6493
6601
|
options: 'options',
|
|
6602
|
+
target: 'target',
|
|
6494
6603
|
type: 'type',
|
|
6495
6604
|
};
|
|
6496
6605
|
}
|
|
@@ -6498,6 +6607,7 @@ export class RunClusterCheckRequest extends $tea.Model {
|
|
|
6498
6607
|
static types(): { [key: string]: any } {
|
|
6499
6608
|
return {
|
|
6500
6609
|
options: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6610
|
+
target: 'string',
|
|
6501
6611
|
type: 'string',
|
|
6502
6612
|
};
|
|
6503
6613
|
}
|
|
@@ -6916,6 +7026,28 @@ export class ScanClusterVulsResponse extends $tea.Model {
|
|
|
6916
7026
|
}
|
|
6917
7027
|
}
|
|
6918
7028
|
|
|
7029
|
+
export class StartAlertRequest extends $tea.Model {
|
|
7030
|
+
alertRuleGroupName?: string;
|
|
7031
|
+
alertRuleName?: string;
|
|
7032
|
+
static names(): { [key: string]: string } {
|
|
7033
|
+
return {
|
|
7034
|
+
alertRuleGroupName: 'alert_rule_group_name',
|
|
7035
|
+
alertRuleName: 'alert_rule_name',
|
|
7036
|
+
};
|
|
7037
|
+
}
|
|
7038
|
+
|
|
7039
|
+
static types(): { [key: string]: any } {
|
|
7040
|
+
return {
|
|
7041
|
+
alertRuleGroupName: 'string',
|
|
7042
|
+
alertRuleName: 'string',
|
|
7043
|
+
};
|
|
7044
|
+
}
|
|
7045
|
+
|
|
7046
|
+
constructor(map?: { [key: string]: any }) {
|
|
7047
|
+
super(map);
|
|
7048
|
+
}
|
|
7049
|
+
}
|
|
7050
|
+
|
|
6919
7051
|
export class StartAlertResponseBody extends $tea.Model {
|
|
6920
7052
|
msg?: string;
|
|
6921
7053
|
status?: boolean;
|
|
@@ -7080,6 +7212,28 @@ export class StartWorkflowResponse extends $tea.Model {
|
|
|
7080
7212
|
}
|
|
7081
7213
|
}
|
|
7082
7214
|
|
|
7215
|
+
export class StopAlertRequest extends $tea.Model {
|
|
7216
|
+
alertRuleGroupName?: string;
|
|
7217
|
+
alertRuleName?: string;
|
|
7218
|
+
static names(): { [key: string]: string } {
|
|
7219
|
+
return {
|
|
7220
|
+
alertRuleGroupName: 'alert_rule_group_name',
|
|
7221
|
+
alertRuleName: 'alert_rule_name',
|
|
7222
|
+
};
|
|
7223
|
+
}
|
|
7224
|
+
|
|
7225
|
+
static types(): { [key: string]: any } {
|
|
7226
|
+
return {
|
|
7227
|
+
alertRuleGroupName: 'string',
|
|
7228
|
+
alertRuleName: 'string',
|
|
7229
|
+
};
|
|
7230
|
+
}
|
|
7231
|
+
|
|
7232
|
+
constructor(map?: { [key: string]: any }) {
|
|
7233
|
+
super(map);
|
|
7234
|
+
}
|
|
7235
|
+
}
|
|
7236
|
+
|
|
7083
7237
|
export class StopAlertResponseBody extends $tea.Model {
|
|
7084
7238
|
msg?: string;
|
|
7085
7239
|
status?: boolean;
|
|
@@ -7587,6 +7741,50 @@ export class UpdateTemplateResponse extends $tea.Model {
|
|
|
7587
7741
|
}
|
|
7588
7742
|
}
|
|
7589
7743
|
|
|
7744
|
+
export class UpdateUserPermissionsRequest extends $tea.Model {
|
|
7745
|
+
body?: UpdateUserPermissionsRequestBody[];
|
|
7746
|
+
mode?: string;
|
|
7747
|
+
static names(): { [key: string]: string } {
|
|
7748
|
+
return {
|
|
7749
|
+
body: 'body',
|
|
7750
|
+
mode: 'mode',
|
|
7751
|
+
};
|
|
7752
|
+
}
|
|
7753
|
+
|
|
7754
|
+
static types(): { [key: string]: any } {
|
|
7755
|
+
return {
|
|
7756
|
+
body: { 'type': 'array', 'itemType': UpdateUserPermissionsRequestBody },
|
|
7757
|
+
mode: 'string',
|
|
7758
|
+
};
|
|
7759
|
+
}
|
|
7760
|
+
|
|
7761
|
+
constructor(map?: { [key: string]: any }) {
|
|
7762
|
+
super(map);
|
|
7763
|
+
}
|
|
7764
|
+
}
|
|
7765
|
+
|
|
7766
|
+
export class UpdateUserPermissionsResponse extends $tea.Model {
|
|
7767
|
+
headers?: { [key: string]: string };
|
|
7768
|
+
statusCode?: number;
|
|
7769
|
+
static names(): { [key: string]: string } {
|
|
7770
|
+
return {
|
|
7771
|
+
headers: 'headers',
|
|
7772
|
+
statusCode: 'statusCode',
|
|
7773
|
+
};
|
|
7774
|
+
}
|
|
7775
|
+
|
|
7776
|
+
static types(): { [key: string]: any } {
|
|
7777
|
+
return {
|
|
7778
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7779
|
+
statusCode: 'number',
|
|
7780
|
+
};
|
|
7781
|
+
}
|
|
7782
|
+
|
|
7783
|
+
constructor(map?: { [key: string]: any }) {
|
|
7784
|
+
super(map);
|
|
7785
|
+
}
|
|
7786
|
+
}
|
|
7787
|
+
|
|
7590
7788
|
export class UpgradeClusterRequest extends $tea.Model {
|
|
7591
7789
|
componentName?: string;
|
|
7592
7790
|
masterOnly?: boolean;
|
|
@@ -7709,6 +7907,8 @@ export class UpgradeClusterAddonsResponse extends $tea.Model {
|
|
|
7709
7907
|
export class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
7710
7908
|
imageId?: string;
|
|
7711
7909
|
kubernetesVersion?: string;
|
|
7910
|
+
nodeNames?: string[];
|
|
7911
|
+
rollingPolicy?: UpgradeClusterNodepoolRequestRollingPolicy;
|
|
7712
7912
|
runtimeType?: string;
|
|
7713
7913
|
runtimeVersion?: string;
|
|
7714
7914
|
useReplace?: boolean;
|
|
@@ -7716,6 +7916,8 @@ export class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
|
7716
7916
|
return {
|
|
7717
7917
|
imageId: 'image_id',
|
|
7718
7918
|
kubernetesVersion: 'kubernetes_version',
|
|
7919
|
+
nodeNames: 'node_names',
|
|
7920
|
+
rollingPolicy: 'rolling_policy',
|
|
7719
7921
|
runtimeType: 'runtime_type',
|
|
7720
7922
|
runtimeVersion: 'runtime_version',
|
|
7721
7923
|
useReplace: 'use_replace',
|
|
@@ -7726,6 +7928,8 @@ export class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
|
7726
7928
|
return {
|
|
7727
7929
|
imageId: 'string',
|
|
7728
7930
|
kubernetesVersion: 'string',
|
|
7931
|
+
nodeNames: { 'type': 'array', 'itemType': 'string' },
|
|
7932
|
+
rollingPolicy: UpgradeClusterNodepoolRequestRollingPolicy,
|
|
7729
7933
|
runtimeType: 'string',
|
|
7730
7934
|
runtimeVersion: 'string',
|
|
7731
7935
|
useReplace: 'boolean',
|
|
@@ -8854,6 +9058,75 @@ export class CreateClusterNodePoolRequestTeeConfig extends $tea.Model {
|
|
|
8854
9058
|
}
|
|
8855
9059
|
}
|
|
8856
9060
|
|
|
9061
|
+
export class DeleteAlertContactResponseBodyBody extends $tea.Model {
|
|
9062
|
+
status?: boolean;
|
|
9063
|
+
msg?: string;
|
|
9064
|
+
contactId?: string;
|
|
9065
|
+
static names(): { [key: string]: string } {
|
|
9066
|
+
return {
|
|
9067
|
+
status: 'status',
|
|
9068
|
+
msg: 'msg',
|
|
9069
|
+
contactId: 'contact_id',
|
|
9070
|
+
};
|
|
9071
|
+
}
|
|
9072
|
+
|
|
9073
|
+
static types(): { [key: string]: any } {
|
|
9074
|
+
return {
|
|
9075
|
+
status: 'boolean',
|
|
9076
|
+
msg: 'string',
|
|
9077
|
+
contactId: 'string',
|
|
9078
|
+
};
|
|
9079
|
+
}
|
|
9080
|
+
|
|
9081
|
+
constructor(map?: { [key: string]: any }) {
|
|
9082
|
+
super(map);
|
|
9083
|
+
}
|
|
9084
|
+
}
|
|
9085
|
+
|
|
9086
|
+
export class DeleteAlertContactResponseBody extends $tea.Model {
|
|
9087
|
+
body?: DeleteAlertContactResponseBodyBody[];
|
|
9088
|
+
static names(): { [key: string]: string } {
|
|
9089
|
+
return {
|
|
9090
|
+
body: 'body',
|
|
9091
|
+
};
|
|
9092
|
+
}
|
|
9093
|
+
|
|
9094
|
+
static types(): { [key: string]: any } {
|
|
9095
|
+
return {
|
|
9096
|
+
body: { 'type': 'array', 'itemType': DeleteAlertContactResponseBodyBody },
|
|
9097
|
+
};
|
|
9098
|
+
}
|
|
9099
|
+
|
|
9100
|
+
constructor(map?: { [key: string]: any }) {
|
|
9101
|
+
super(map);
|
|
9102
|
+
}
|
|
9103
|
+
}
|
|
9104
|
+
|
|
9105
|
+
export class DeleteAlertContactGroupResponseBody extends $tea.Model {
|
|
9106
|
+
status?: boolean;
|
|
9107
|
+
msg?: string;
|
|
9108
|
+
contactGroupId?: string;
|
|
9109
|
+
static names(): { [key: string]: string } {
|
|
9110
|
+
return {
|
|
9111
|
+
status: 'status',
|
|
9112
|
+
msg: 'msg',
|
|
9113
|
+
contactGroupId: 'contact_group_id',
|
|
9114
|
+
};
|
|
9115
|
+
}
|
|
9116
|
+
|
|
9117
|
+
static types(): { [key: string]: any } {
|
|
9118
|
+
return {
|
|
9119
|
+
status: 'boolean',
|
|
9120
|
+
msg: 'string',
|
|
9121
|
+
contactGroupId: 'string',
|
|
9122
|
+
};
|
|
9123
|
+
}
|
|
9124
|
+
|
|
9125
|
+
constructor(map?: { [key: string]: any }) {
|
|
9126
|
+
super(map);
|
|
9127
|
+
}
|
|
9128
|
+
}
|
|
9129
|
+
|
|
8857
9130
|
export class DescribeAddonResponseBodyNewerVersions extends $tea.Model {
|
|
8858
9131
|
minimumClusterVersion?: string;
|
|
8859
9132
|
upgradable?: boolean;
|
|
@@ -10317,6 +10590,53 @@ export class DescribeClusterResourcesResponseBodyDependencies extends $tea.Model
|
|
|
10317
10590
|
}
|
|
10318
10591
|
}
|
|
10319
10592
|
|
|
10593
|
+
export class DescribeClusterResourcesResponseBodyAssociatedObject extends $tea.Model {
|
|
10594
|
+
kind?: string;
|
|
10595
|
+
namespace?: string;
|
|
10596
|
+
name?: string;
|
|
10597
|
+
static names(): { [key: string]: string } {
|
|
10598
|
+
return {
|
|
10599
|
+
kind: 'kind',
|
|
10600
|
+
namespace: 'namespace',
|
|
10601
|
+
name: 'name',
|
|
10602
|
+
};
|
|
10603
|
+
}
|
|
10604
|
+
|
|
10605
|
+
static types(): { [key: string]: any } {
|
|
10606
|
+
return {
|
|
10607
|
+
kind: 'string',
|
|
10608
|
+
namespace: 'string',
|
|
10609
|
+
name: 'string',
|
|
10610
|
+
};
|
|
10611
|
+
}
|
|
10612
|
+
|
|
10613
|
+
constructor(map?: { [key: string]: any }) {
|
|
10614
|
+
super(map);
|
|
10615
|
+
}
|
|
10616
|
+
}
|
|
10617
|
+
|
|
10618
|
+
export class DescribeClusterResourcesResponseBodyDeleteBehavior extends $tea.Model {
|
|
10619
|
+
deleteByDefault?: boolean;
|
|
10620
|
+
changeable?: boolean;
|
|
10621
|
+
static names(): { [key: string]: string } {
|
|
10622
|
+
return {
|
|
10623
|
+
deleteByDefault: 'delete_by_default',
|
|
10624
|
+
changeable: 'changeable',
|
|
10625
|
+
};
|
|
10626
|
+
}
|
|
10627
|
+
|
|
10628
|
+
static types(): { [key: string]: any } {
|
|
10629
|
+
return {
|
|
10630
|
+
deleteByDefault: 'boolean',
|
|
10631
|
+
changeable: 'boolean',
|
|
10632
|
+
};
|
|
10633
|
+
}
|
|
10634
|
+
|
|
10635
|
+
constructor(map?: { [key: string]: any }) {
|
|
10636
|
+
super(map);
|
|
10637
|
+
}
|
|
10638
|
+
}
|
|
10639
|
+
|
|
10320
10640
|
export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
10321
10641
|
clusterId?: string;
|
|
10322
10642
|
created?: string;
|
|
@@ -10326,6 +10646,10 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
10326
10646
|
state?: string;
|
|
10327
10647
|
autoCreate?: number;
|
|
10328
10648
|
dependencies?: DescribeClusterResourcesResponseBodyDependencies[];
|
|
10649
|
+
associatedObject?: DescribeClusterResourcesResponseBodyAssociatedObject;
|
|
10650
|
+
deleteBehavior?: DescribeClusterResourcesResponseBodyDeleteBehavior;
|
|
10651
|
+
creatorType?: string;
|
|
10652
|
+
extraInfo?: { [key: string]: any };
|
|
10329
10653
|
static names(): { [key: string]: string } {
|
|
10330
10654
|
return {
|
|
10331
10655
|
clusterId: 'cluster_id',
|
|
@@ -10336,6 +10660,10 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
10336
10660
|
state: 'state',
|
|
10337
10661
|
autoCreate: 'auto_create',
|
|
10338
10662
|
dependencies: 'dependencies',
|
|
10663
|
+
associatedObject: 'associated_object',
|
|
10664
|
+
deleteBehavior: 'delete_behavior',
|
|
10665
|
+
creatorType: 'creator_type',
|
|
10666
|
+
extraInfo: 'extra_info',
|
|
10339
10667
|
};
|
|
10340
10668
|
}
|
|
10341
10669
|
|
|
@@ -10349,6 +10677,10 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
10349
10677
|
state: 'string',
|
|
10350
10678
|
autoCreate: 'number',
|
|
10351
10679
|
dependencies: { 'type': 'array', 'itemType': DescribeClusterResourcesResponseBodyDependencies },
|
|
10680
|
+
associatedObject: DescribeClusterResourcesResponseBodyAssociatedObject,
|
|
10681
|
+
deleteBehavior: DescribeClusterResourcesResponseBodyDeleteBehavior,
|
|
10682
|
+
creatorType: 'string',
|
|
10683
|
+
extraInfo: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
10352
10684
|
};
|
|
10353
10685
|
}
|
|
10354
10686
|
|
|
@@ -12614,6 +12946,25 @@ export class ModifyClusterNodePoolRequestTeeConfig extends $tea.Model {
|
|
|
12614
12946
|
}
|
|
12615
12947
|
}
|
|
12616
12948
|
|
|
12949
|
+
export class ModifyNodePoolNodeConfigRequestOsConfig extends $tea.Model {
|
|
12950
|
+
sysctl?: { [key: string]: any };
|
|
12951
|
+
static names(): { [key: string]: string } {
|
|
12952
|
+
return {
|
|
12953
|
+
sysctl: 'sysctl',
|
|
12954
|
+
};
|
|
12955
|
+
}
|
|
12956
|
+
|
|
12957
|
+
static types(): { [key: string]: any } {
|
|
12958
|
+
return {
|
|
12959
|
+
sysctl: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
12960
|
+
};
|
|
12961
|
+
}
|
|
12962
|
+
|
|
12963
|
+
constructor(map?: { [key: string]: any }) {
|
|
12964
|
+
super(map);
|
|
12965
|
+
}
|
|
12966
|
+
}
|
|
12967
|
+
|
|
12617
12968
|
export class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
|
|
12618
12969
|
maxParallelism?: number;
|
|
12619
12970
|
static names(): { [key: string]: string } {
|
|
@@ -12752,6 +13103,40 @@ export class UnInstallClusterAddonsRequestAddons extends $tea.Model {
|
|
|
12752
13103
|
}
|
|
12753
13104
|
}
|
|
12754
13105
|
|
|
13106
|
+
export class UpdateUserPermissionsRequestBody extends $tea.Model {
|
|
13107
|
+
cluster?: string;
|
|
13108
|
+
isCustom?: boolean;
|
|
13109
|
+
isRamRole?: boolean;
|
|
13110
|
+
namespace?: string;
|
|
13111
|
+
roleName?: string;
|
|
13112
|
+
roleType?: string;
|
|
13113
|
+
static names(): { [key: string]: string } {
|
|
13114
|
+
return {
|
|
13115
|
+
cluster: 'cluster',
|
|
13116
|
+
isCustom: 'is_custom',
|
|
13117
|
+
isRamRole: 'is_ram_role',
|
|
13118
|
+
namespace: 'namespace',
|
|
13119
|
+
roleName: 'role_name',
|
|
13120
|
+
roleType: 'role_type',
|
|
13121
|
+
};
|
|
13122
|
+
}
|
|
13123
|
+
|
|
13124
|
+
static types(): { [key: string]: any } {
|
|
13125
|
+
return {
|
|
13126
|
+
cluster: 'string',
|
|
13127
|
+
isCustom: 'boolean',
|
|
13128
|
+
isRamRole: 'boolean',
|
|
13129
|
+
namespace: 'string',
|
|
13130
|
+
roleName: 'string',
|
|
13131
|
+
roleType: 'string',
|
|
13132
|
+
};
|
|
13133
|
+
}
|
|
13134
|
+
|
|
13135
|
+
constructor(map?: { [key: string]: any }) {
|
|
13136
|
+
super(map);
|
|
13137
|
+
}
|
|
13138
|
+
}
|
|
13139
|
+
|
|
12755
13140
|
export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
12756
13141
|
componentName?: string;
|
|
12757
13142
|
config?: string;
|
|
@@ -12783,6 +13168,31 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
12783
13168
|
}
|
|
12784
13169
|
}
|
|
12785
13170
|
|
|
13171
|
+
export class UpgradeClusterNodepoolRequestRollingPolicy extends $tea.Model {
|
|
13172
|
+
batchInterval?: number;
|
|
13173
|
+
maxParallelism?: number;
|
|
13174
|
+
pausePolicy?: string;
|
|
13175
|
+
static names(): { [key: string]: string } {
|
|
13176
|
+
return {
|
|
13177
|
+
batchInterval: 'batch_interval',
|
|
13178
|
+
maxParallelism: 'max_parallelism',
|
|
13179
|
+
pausePolicy: 'pause_policy',
|
|
13180
|
+
};
|
|
13181
|
+
}
|
|
13182
|
+
|
|
13183
|
+
static types(): { [key: string]: any } {
|
|
13184
|
+
return {
|
|
13185
|
+
batchInterval: 'number',
|
|
13186
|
+
maxParallelism: 'number',
|
|
13187
|
+
pausePolicy: 'string',
|
|
13188
|
+
};
|
|
13189
|
+
}
|
|
13190
|
+
|
|
13191
|
+
constructor(map?: { [key: string]: any }) {
|
|
13192
|
+
super(map);
|
|
13193
|
+
}
|
|
13194
|
+
}
|
|
13195
|
+
|
|
12786
13196
|
|
|
12787
13197
|
export default class Client extends OpenApi {
|
|
12788
13198
|
|
|
@@ -13865,9 +14275,22 @@ export default class Client extends OpenApi {
|
|
|
13865
14275
|
return await this.createTriggerWithOptions(clusterId, request, headers, runtime);
|
|
13866
14276
|
}
|
|
13867
14277
|
|
|
13868
|
-
async deleteAlertContactWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
|
|
14278
|
+
async deleteAlertContactWithOptions(tmpReq: DeleteAlertContactRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
|
|
14279
|
+
Util.validateModel(tmpReq);
|
|
14280
|
+
let request = new DeleteAlertContactShrinkRequest({ });
|
|
14281
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
14282
|
+
if (!Util.isUnset(tmpReq.contactIds)) {
|
|
14283
|
+
request.contactIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.contactIds, "contact_ids", "json");
|
|
14284
|
+
}
|
|
14285
|
+
|
|
14286
|
+
let query : {[key: string ]: any} = { };
|
|
14287
|
+
if (!Util.isUnset(request.contactIdsShrink)) {
|
|
14288
|
+
query["contact_ids"] = request.contactIdsShrink;
|
|
14289
|
+
}
|
|
14290
|
+
|
|
13869
14291
|
let req = new $OpenApi.OpenApiRequest({
|
|
13870
14292
|
headers: headers,
|
|
14293
|
+
query: OpenApiUtil.query(query),
|
|
13871
14294
|
});
|
|
13872
14295
|
let params = new $OpenApi.Params({
|
|
13873
14296
|
action: "DeleteAlertContact",
|
|
@@ -13878,20 +14301,33 @@ export default class Client extends OpenApi {
|
|
|
13878
14301
|
authType: "AK",
|
|
13879
14302
|
style: "ROA",
|
|
13880
14303
|
reqBodyType: "json",
|
|
13881
|
-
bodyType: "
|
|
14304
|
+
bodyType: "array",
|
|
13882
14305
|
});
|
|
13883
14306
|
return $tea.cast<DeleteAlertContactResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
|
|
13884
14307
|
}
|
|
13885
14308
|
|
|
13886
|
-
async deleteAlertContact(): Promise<DeleteAlertContactResponse> {
|
|
14309
|
+
async deleteAlertContact(request: DeleteAlertContactRequest): Promise<DeleteAlertContactResponse> {
|
|
13887
14310
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13888
14311
|
let headers : {[key: string ]: string} = { };
|
|
13889
|
-
return await this.deleteAlertContactWithOptions(headers, runtime);
|
|
14312
|
+
return await this.deleteAlertContactWithOptions(request, headers, runtime);
|
|
13890
14313
|
}
|
|
13891
14314
|
|
|
13892
|
-
async deleteAlertContactGroupWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
|
|
14315
|
+
async deleteAlertContactGroupWithOptions(tmpReq: DeleteAlertContactGroupRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
|
|
14316
|
+
Util.validateModel(tmpReq);
|
|
14317
|
+
let request = new DeleteAlertContactGroupShrinkRequest({ });
|
|
14318
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
14319
|
+
if (!Util.isUnset(tmpReq.contactGroupIds)) {
|
|
14320
|
+
request.contactGroupIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.contactGroupIds, "contact_group_ids", "json");
|
|
14321
|
+
}
|
|
14322
|
+
|
|
14323
|
+
let query : {[key: string ]: any} = { };
|
|
14324
|
+
if (!Util.isUnset(request.contactGroupIdsShrink)) {
|
|
14325
|
+
query["contact_group_ids"] = request.contactGroupIdsShrink;
|
|
14326
|
+
}
|
|
14327
|
+
|
|
13893
14328
|
let req = new $OpenApi.OpenApiRequest({
|
|
13894
14329
|
headers: headers,
|
|
14330
|
+
query: OpenApiUtil.query(query),
|
|
13895
14331
|
});
|
|
13896
14332
|
let params = new $OpenApi.Params({
|
|
13897
14333
|
action: "DeleteAlertContactGroup",
|
|
@@ -13902,15 +14338,15 @@ export default class Client extends OpenApi {
|
|
|
13902
14338
|
authType: "AK",
|
|
13903
14339
|
style: "ROA",
|
|
13904
14340
|
reqBodyType: "json",
|
|
13905
|
-
bodyType: "
|
|
14341
|
+
bodyType: "array",
|
|
13906
14342
|
});
|
|
13907
14343
|
return $tea.cast<DeleteAlertContactGroupResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
|
|
13908
14344
|
}
|
|
13909
14345
|
|
|
13910
|
-
async deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse> {
|
|
14346
|
+
async deleteAlertContactGroup(request: DeleteAlertContactGroupRequest): Promise<DeleteAlertContactGroupResponse> {
|
|
13911
14347
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13912
14348
|
let headers : {[key: string ]: string} = { };
|
|
13913
|
-
return await this.deleteAlertContactGroupWithOptions(headers, runtime);
|
|
14349
|
+
return await this.deleteAlertContactGroupWithOptions(request, headers, runtime);
|
|
13914
14350
|
}
|
|
13915
14351
|
|
|
13916
14352
|
async deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterResponse> {
|
|
@@ -14797,9 +15233,16 @@ export default class Client extends OpenApi {
|
|
|
14797
15233
|
return await this.describeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
14798
15234
|
}
|
|
14799
15235
|
|
|
14800
|
-
async describeClusterResourcesWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterResourcesResponse> {
|
|
15236
|
+
async describeClusterResourcesWithOptions(ClusterId: string, request: DescribeClusterResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterResourcesResponse> {
|
|
15237
|
+
Util.validateModel(request);
|
|
15238
|
+
let query : {[key: string ]: any} = { };
|
|
15239
|
+
if (!Util.isUnset(request.withAddonResources)) {
|
|
15240
|
+
query["with_addon_resources"] = request.withAddonResources;
|
|
15241
|
+
}
|
|
15242
|
+
|
|
14801
15243
|
let req = new $OpenApi.OpenApiRequest({
|
|
14802
15244
|
headers: headers,
|
|
15245
|
+
query: OpenApiUtil.query(query),
|
|
14803
15246
|
});
|
|
14804
15247
|
let params = new $OpenApi.Params({
|
|
14805
15248
|
action: "DescribeClusterResources",
|
|
@@ -14815,10 +15258,10 @@ export default class Client extends OpenApi {
|
|
|
14815
15258
|
return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
14816
15259
|
}
|
|
14817
15260
|
|
|
14818
|
-
async describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse> {
|
|
15261
|
+
async describeClusterResources(ClusterId: string, request: DescribeClusterResourcesRequest): Promise<DescribeClusterResourcesResponse> {
|
|
14819
15262
|
let runtime = new $Util.RuntimeOptions({ });
|
|
14820
15263
|
let headers : {[key: string ]: string} = { };
|
|
14821
|
-
return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
|
|
15264
|
+
return await this.describeClusterResourcesWithOptions(ClusterId, request, headers, runtime);
|
|
14822
15265
|
}
|
|
14823
15266
|
|
|
14824
15267
|
async describeClusterTasksWithOptions(clusterId: string, request: DescribeClusterTasksRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse> {
|
|
@@ -16167,6 +16610,10 @@ export default class Client extends OpenApi {
|
|
|
16167
16610
|
async listClusterChecksWithOptions(clusterId: string, request: ListClusterChecksRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListClusterChecksResponse> {
|
|
16168
16611
|
Util.validateModel(request);
|
|
16169
16612
|
let query : {[key: string ]: any} = { };
|
|
16613
|
+
if (!Util.isUnset(request.target)) {
|
|
16614
|
+
query["target"] = request.target;
|
|
16615
|
+
}
|
|
16616
|
+
|
|
16170
16617
|
if (!Util.isUnset(request.type)) {
|
|
16171
16618
|
query["type"] = request.type;
|
|
16172
16619
|
}
|
|
@@ -16583,6 +17030,10 @@ export default class Client extends OpenApi {
|
|
|
16583
17030
|
body["kubelet_config"] = request.kubeletConfig;
|
|
16584
17031
|
}
|
|
16585
17032
|
|
|
17033
|
+
if (!Util.isUnset(request.osConfig)) {
|
|
17034
|
+
body["os_config"] = request.osConfig;
|
|
17035
|
+
}
|
|
17036
|
+
|
|
16586
17037
|
if (!Util.isUnset(request.rollingPolicy)) {
|
|
16587
17038
|
body["rolling_policy"] = request.rollingPolicy;
|
|
16588
17039
|
}
|
|
@@ -17085,6 +17536,10 @@ export default class Client extends OpenApi {
|
|
|
17085
17536
|
body["options"] = request.options;
|
|
17086
17537
|
}
|
|
17087
17538
|
|
|
17539
|
+
if (!Util.isUnset(request.target)) {
|
|
17540
|
+
body["target"] = request.target;
|
|
17541
|
+
}
|
|
17542
|
+
|
|
17088
17543
|
if (!Util.isUnset(request.type)) {
|
|
17089
17544
|
body["type"] = request.type;
|
|
17090
17545
|
}
|
|
@@ -17414,9 +17869,20 @@ export default class Client extends OpenApi {
|
|
|
17414
17869
|
return await this.scanClusterVulsWithOptions(clusterId, headers, runtime);
|
|
17415
17870
|
}
|
|
17416
17871
|
|
|
17417
|
-
async startAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartAlertResponse> {
|
|
17872
|
+
async startAlertWithOptions(ClusterId: string, request: StartAlertRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartAlertResponse> {
|
|
17873
|
+
Util.validateModel(request);
|
|
17874
|
+
let body : {[key: string ]: any} = { };
|
|
17875
|
+
if (!Util.isUnset(request.alertRuleGroupName)) {
|
|
17876
|
+
body["alert_rule_group_name"] = request.alertRuleGroupName;
|
|
17877
|
+
}
|
|
17878
|
+
|
|
17879
|
+
if (!Util.isUnset(request.alertRuleName)) {
|
|
17880
|
+
body["alert_rule_name"] = request.alertRuleName;
|
|
17881
|
+
}
|
|
17882
|
+
|
|
17418
17883
|
let req = new $OpenApi.OpenApiRequest({
|
|
17419
17884
|
headers: headers,
|
|
17885
|
+
body: OpenApiUtil.parseToMap(body),
|
|
17420
17886
|
});
|
|
17421
17887
|
let params = new $OpenApi.Params({
|
|
17422
17888
|
action: "StartAlert",
|
|
@@ -17432,10 +17898,10 @@ export default class Client extends OpenApi {
|
|
|
17432
17898
|
return $tea.cast<StartAlertResponse>(await this.callApi(params, req, runtime), new StartAlertResponse({}));
|
|
17433
17899
|
}
|
|
17434
17900
|
|
|
17435
|
-
async startAlert(ClusterId: string): Promise<StartAlertResponse> {
|
|
17901
|
+
async startAlert(ClusterId: string, request: StartAlertRequest): Promise<StartAlertResponse> {
|
|
17436
17902
|
let runtime = new $Util.RuntimeOptions({ });
|
|
17437
17903
|
let headers : {[key: string ]: string} = { };
|
|
17438
|
-
return await this.startAlertWithOptions(ClusterId, headers, runtime);
|
|
17904
|
+
return await this.startAlertWithOptions(ClusterId, request, headers, runtime);
|
|
17439
17905
|
}
|
|
17440
17906
|
|
|
17441
17907
|
async startWorkflowWithOptions(request: StartWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartWorkflowResponse> {
|
|
@@ -17541,9 +18007,20 @@ export default class Client extends OpenApi {
|
|
|
17541
18007
|
return await this.startWorkflowWithOptions(request, headers, runtime);
|
|
17542
18008
|
}
|
|
17543
18009
|
|
|
17544
|
-
async stopAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopAlertResponse> {
|
|
18010
|
+
async stopAlertWithOptions(ClusterId: string, request: StopAlertRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopAlertResponse> {
|
|
18011
|
+
Util.validateModel(request);
|
|
18012
|
+
let body : {[key: string ]: any} = { };
|
|
18013
|
+
if (!Util.isUnset(request.alertRuleGroupName)) {
|
|
18014
|
+
body["alert_rule_group_name"] = request.alertRuleGroupName;
|
|
18015
|
+
}
|
|
18016
|
+
|
|
18017
|
+
if (!Util.isUnset(request.alertRuleName)) {
|
|
18018
|
+
body["alert_rule_name"] = request.alertRuleName;
|
|
18019
|
+
}
|
|
18020
|
+
|
|
17545
18021
|
let req = new $OpenApi.OpenApiRequest({
|
|
17546
18022
|
headers: headers,
|
|
18023
|
+
body: OpenApiUtil.parseToMap(body),
|
|
17547
18024
|
});
|
|
17548
18025
|
let params = new $OpenApi.Params({
|
|
17549
18026
|
action: "StopAlert",
|
|
@@ -17559,10 +18036,10 @@ export default class Client extends OpenApi {
|
|
|
17559
18036
|
return $tea.cast<StopAlertResponse>(await this.callApi(params, req, runtime), new StopAlertResponse({}));
|
|
17560
18037
|
}
|
|
17561
18038
|
|
|
17562
|
-
async stopAlert(ClusterId: string): Promise<StopAlertResponse> {
|
|
18039
|
+
async stopAlert(ClusterId: string, request: StopAlertRequest): Promise<StopAlertResponse> {
|
|
17563
18040
|
let runtime = new $Util.RuntimeOptions({ });
|
|
17564
18041
|
let headers : {[key: string ]: string} = { };
|
|
17565
|
-
return await this.stopAlertWithOptions(ClusterId, headers, runtime);
|
|
18042
|
+
return await this.stopAlertWithOptions(ClusterId, request, headers, runtime);
|
|
17566
18043
|
}
|
|
17567
18044
|
|
|
17568
18045
|
async syncClusterNodePoolWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SyncClusterNodePoolResponse> {
|
|
@@ -17882,6 +18359,38 @@ export default class Client extends OpenApi {
|
|
|
17882
18359
|
return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
|
|
17883
18360
|
}
|
|
17884
18361
|
|
|
18362
|
+
async updateUserPermissionsWithOptions(uid: string, request: UpdateUserPermissionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateUserPermissionsResponse> {
|
|
18363
|
+
Util.validateModel(request);
|
|
18364
|
+
let query : {[key: string ]: any} = { };
|
|
18365
|
+
if (!Util.isUnset(request.mode)) {
|
|
18366
|
+
query["mode"] = request.mode;
|
|
18367
|
+
}
|
|
18368
|
+
|
|
18369
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
18370
|
+
headers: headers,
|
|
18371
|
+
query: OpenApiUtil.query(query),
|
|
18372
|
+
body: Util.toArray(request.body),
|
|
18373
|
+
});
|
|
18374
|
+
let params = new $OpenApi.Params({
|
|
18375
|
+
action: "UpdateUserPermissions",
|
|
18376
|
+
version: "2015-12-15",
|
|
18377
|
+
protocol: "HTTPS",
|
|
18378
|
+
pathname: `/permissions/users/${OpenApiUtil.getEncodeParam(uid)}/update`,
|
|
18379
|
+
method: "POST",
|
|
18380
|
+
authType: "AK",
|
|
18381
|
+
style: "ROA",
|
|
18382
|
+
reqBodyType: "json",
|
|
18383
|
+
bodyType: "none",
|
|
18384
|
+
});
|
|
18385
|
+
return $tea.cast<UpdateUserPermissionsResponse>(await this.callApi(params, req, runtime), new UpdateUserPermissionsResponse({}));
|
|
18386
|
+
}
|
|
18387
|
+
|
|
18388
|
+
async updateUserPermissions(uid: string, request: UpdateUserPermissionsRequest): Promise<UpdateUserPermissionsResponse> {
|
|
18389
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
18390
|
+
let headers : {[key: string ]: string} = { };
|
|
18391
|
+
return await this.updateUserPermissionsWithOptions(uid, request, headers, runtime);
|
|
18392
|
+
}
|
|
18393
|
+
|
|
17885
18394
|
async upgradeClusterWithOptions(ClusterId: string, request: UpgradeClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterResponse> {
|
|
17886
18395
|
Util.validateModel(request);
|
|
17887
18396
|
let body : {[key: string ]: any} = { };
|
|
@@ -17970,6 +18479,14 @@ export default class Client extends OpenApi {
|
|
|
17970
18479
|
body["kubernetes_version"] = request.kubernetesVersion;
|
|
17971
18480
|
}
|
|
17972
18481
|
|
|
18482
|
+
if (!Util.isUnset(request.nodeNames)) {
|
|
18483
|
+
body["node_names"] = request.nodeNames;
|
|
18484
|
+
}
|
|
18485
|
+
|
|
18486
|
+
if (!Util.isUnset(request.rollingPolicy)) {
|
|
18487
|
+
body["rolling_policy"] = request.rollingPolicy;
|
|
18488
|
+
}
|
|
18489
|
+
|
|
17973
18490
|
if (!Util.isUnset(request.runtimeType)) {
|
|
17974
18491
|
body["runtime_type"] = request.runtimeType;
|
|
17975
18492
|
}
|