public class GrantUserPermissionsRequest
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.
|
List<String> |
subAccountUserIds
The IDs of RAM users or RAM roles.
|
| 构造器和说明 |
|---|
GrantUserPermissionsRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static GrantUserPermissionsRequest |
build(Map<String,?> map) |
String |
getPermissions() |
String |
getSubAccountUserId() |
List<String> |
getSubAccountUserIds() |
GrantUserPermissionsRequest |
setPermissions(String permissions) |
GrantUserPermissionsRequest |
setSubAccountUserId(String subAccountUserId) |
GrantUserPermissionsRequest |
setSubAccountUserIds(List<String> subAccountUserIds) |
@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.
public static GrantUserPermissionsRequest build(Map<String,?> map) throws Exception
Exceptionpublic GrantUserPermissionsRequest setPermissions(String permissions)
public String getPermissions()
public GrantUserPermissionsRequest setSubAccountUserId(String subAccountUserId)
public String getSubAccountUserId()
public GrantUserPermissionsRequest setSubAccountUserIds(List<String> subAccountUserIds)
Copyright © 2023. All rights reserved.