public class GrantCollectionRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
collection
The name of the collection.
|
String |
DBInstanceId
The ID of the instance in reserved storage mode.
|
String |
grantToNamespace
The name of the namespace to which you want to grant the vector collection permissions.
|
String |
grantType
The type of the permissions that you want to grant.
|
String |
managerAccount
The name of the manager account that has the rds_superuser permission.
|
String |
managerAccountPassword
The password of the manager account.
|
String |
namespace
The name of the namespace.
|
Long |
ownerId |
String |
regionId
The region ID of the instance.
|
| 构造器和说明 |
|---|
GrantCollectionRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static GrantCollectionRequest |
build(Map<String,?> map) |
String |
getCollection() |
String |
getDBInstanceId() |
String |
getGrantToNamespace() |
String |
getGrantType() |
String |
getManagerAccount() |
String |
getManagerAccountPassword() |
String |
getNamespace() |
Long |
getOwnerId() |
String |
getRegionId() |
GrantCollectionRequest |
setCollection(String collection) |
GrantCollectionRequest |
setDBInstanceId(String DBInstanceId) |
GrantCollectionRequest |
setGrantToNamespace(String grantToNamespace) |
GrantCollectionRequest |
setGrantType(String grantType) |
GrantCollectionRequest |
setManagerAccount(String managerAccount) |
GrantCollectionRequest |
setManagerAccountPassword(String managerAccountPassword) |
GrantCollectionRequest |
setNamespace(String namespace) |
GrantCollectionRequest |
setOwnerId(Long ownerId) |
GrantCollectionRequest |
setRegionId(String regionId) |
@NameInMap(value="Collection") public String collection
The name of the collection.
You can call the CreateCollection operation to create a vector collection and call the ListCollections operation to query a list of vector collections.
This parameter is required.
example:document
@NameInMap(value="DBInstanceId") public String DBInstanceId
The ID of the instance in reserved storage mode.
You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.
This parameter is required.
example:gp-xxxxxxxxx
@NameInMap(value="GrantToNamespace") public String grantToNamespace
The name of the namespace to which you want to grant the vector collection permissions.
This parameter is required.
example:othernamespace
@NameInMap(value="GrantType") public String grantType
The type of the permissions that you want to grant. Valid values:
This parameter is required.
example:rw
@NameInMap(value="ManagerAccount") public String managerAccount
The name of the manager account that has the rds_superuser permission.
You can create an account on the Account Management page of the AnalyticDB for PostgreSQL console or by calling the CreateAccount operation.
This parameter is required.
example:testaccount
@NameInMap(value="ManagerAccountPassword") public String managerAccountPassword
The password of the manager account.
This parameter is required.
example:testpassword
@NameInMap(value="Namespace") public String namespace
The name of the namespace.
example:You can call the ListNamespaces operation to query a list of namespaces.
mynamespace
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the instance.
This parameter is required.
example:cn-hangzhou
public static GrantCollectionRequest build(Map<String,?> map) throws Exception
Exceptionpublic GrantCollectionRequest setCollection(String collection)
public String getCollection()
public GrantCollectionRequest setDBInstanceId(String DBInstanceId)
public String getDBInstanceId()
public GrantCollectionRequest setGrantToNamespace(String grantToNamespace)
public String getGrantToNamespace()
public GrantCollectionRequest setGrantType(String grantType)
public String getGrantType()
public GrantCollectionRequest setManagerAccount(String managerAccount)
public String getManagerAccount()
public GrantCollectionRequest setManagerAccountPassword(String managerAccountPassword)
public String getManagerAccountPassword()
public GrantCollectionRequest setNamespace(String namespace)
public String getNamespace()
public GrantCollectionRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public GrantCollectionRequest setRegionId(String regionId)
public String getRegionId()
Copyright © 2024. All rights reserved.