DocumentClient.upsertPermission(String userLink, Permission permission, RequestOptions options) 方法

定义

Upserts a permission.

public ResourceResponse<Permission> upsertPermission(String userLink, Permission permission, RequestOptions options)

参数

userLink
String

the user link.

permission
Permission

the permission to upsert.

options
RequestOptions

the request options.

返回

the resource response with the upserted permission.

例外

DocumentClientException

the document client exception.

适用于