public class GrantUserPermissionsShrinkRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
permissions
The permissions that are granted to an entity.
|
String |
subAccountUserId
The ID of the RAM user or RAM role.
|
String |
subAccountUserIdsShrink
The IDs of RAM users or RAM roles.
|
| 构造器和说明 |
|---|
GrantUserPermissionsShrinkRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static GrantUserPermissionsShrinkRequest |
build(Map<String,?> map) |
String |
getPermissions() |
String |
getSubAccountUserId() |
String |
getSubAccountUserIdsShrink() |
GrantUserPermissionsShrinkRequest |
setPermissions(String permissions) |
GrantUserPermissionsShrinkRequest |
setSubAccountUserId(String subAccountUserId) |
GrantUserPermissionsShrinkRequest |
setSubAccountUserIdsShrink(String subAccountUserIdsShrink) |
@NameInMap(value="Permissions") public String permissions
The permissions that are granted to an entity. The content is a string that consists of JSON arrays. You must specify all permissions that you want to grant to an entity. You can add or remove permissions by modifying the content. Field definition of the sample code:
* `IsCustom`: a parameter that is required by the system. Set the value to `true`.
* `Cluster`: the ID of the Service Mesh (ASM) instance.
* `RoleName`: the name of the permissions. Valid values: `istio-admin`, `istio-ops`, and `istio-readonly`. A value of istio-admin indicates the permissions of ASM administrators. A value of istio-ops indicates the permissions of ASM restricted users. A value of istio-readonly indicates the read-only permissions.
* `IsRamRole`: the entity to which you want to grant the permissions. To grant the permissions to a RAM role, set the value to `true`. Otherwise, set the value to `false`.
@NameInMap(value="SubAccountUserId") public String subAccountUserId
The ID of the RAM user or RAM role.
@NameInMap(value="SubAccountUserIds") public String subAccountUserIdsShrink
The IDs of RAM users or RAM roles. You can grant permissions to multiple users at a time.
public static GrantUserPermissionsShrinkRequest build(Map<String,?> map) throws Exception
Exceptionpublic GrantUserPermissionsShrinkRequest setPermissions(String permissions)
public String getPermissions()
public GrantUserPermissionsShrinkRequest setSubAccountUserId(String subAccountUserId)
public String getSubAccountUserId()
public GrantUserPermissionsShrinkRequest setSubAccountUserIdsShrink(String subAccountUserIdsShrink)
public String getSubAccountUserIdsShrink()
Copyright © 2023. All rights reserved.