类 AclClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.acl.AclClient
-
public class AclClient extends AbstractBceClient
Provides the client for accessing the Baidu Cloud network Service Access Control List (ACL).
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 AclClient()Constructs a new client to invoke service methods on network.AclClient(AclClientConfiguration clientConfiguration)Constructs a new network client using the client configuration to access network.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcreateAcl(CreateAclRequest createAclRequest)Create a acl with the specified options.voidcreateAcl(List<AclRule> aclRules)Create a acl with the specified options.voiddeleteAcl(DeleteAclRequest deleteAclRequest)Delete the specified aclRule.voiddeleteAcl(String aclRuleId)Delete the specified aclRule.protected voidfillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest)the method to fill the internalRequest's content field with bceRequest only support HttpMethodName.POST or HttpMethodName.PUTGetAclResponsegetAcl(GetAclRequest getAclRequest)Get the detail acl information of specified vpc.GetAclResponsegetAcl(String vpcId)Get the detail acl information of specified vpc.ListAclResponselistAclRules(ListAclRequest listAclRequest)Return a list of aclRules owned by the specified subnet.ListAclResponselistAclRules(String subnetId)Return a list of aclRules owned by the specified subnet.voidmodifyAclRuleAttributes(ModifyAclRuleAttributesRequest modifyAclRuleAttributesRequest)Modifying the special attribute to new aclRule owned by the user.voidmodifyAclRuleAttributes(String aclRuleId, AclRule aclRule)Modifying the special attribute to new aclRule owned by the user.-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
AclClient
public AclClient()
Constructs a new client to invoke service methods on network.
-
AclClient
public AclClient(AclClientConfiguration clientConfiguration)
Constructs a new network client using the client configuration to access network.- 参数:
clientConfiguration- The network client configuration options controlling how this client connects to network (e.g. proxy settings, retry counts, etc).
-
-
方法详细资料
-
fillPayload
protected void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest)
the method to fill the internalRequest's content field with bceRequest only support HttpMethodName.POST or HttpMethodName.PUT- 参数:
internalRequest- A request object, populated with endpoint, resource path, ready for callers to populate any additional headers or parameters, and execute.bceRequest- The original request, as created by the user.
-
createAcl
public void createAcl(List<AclRule> aclRules)
Create a acl with the specified options.- 参数:
aclRules- The rules of acl
-
createAcl
public void createAcl(CreateAclRequest createAclRequest)
Create a acl with the specified options. You must fill the field of clientToken,which is especially for keeping idempotent.- 参数:
createAclRequest- The request containing all options for creating a acl.
-
listAclRules
public ListAclResponse listAclRules(String subnetId)
Return a list of aclRules owned by the specified subnet.- 返回:
- The response containing a list of aclRules owned by the subnet.
-
listAclRules
public ListAclResponse listAclRules(ListAclRequest listAclRequest)
Return a list of aclRules owned by the specified subnet.- 参数:
listAclRequest- The request containing all options for listing subnet's aclRule.- 返回:
- The response containing a list of aclRules owned by the specified subnet.
-
getAcl
public GetAclResponse getAcl(String vpcId)
Get the detail acl information of specified vpc.- 参数:
vpcId- The id of the network.- 返回:
- A acl detail model for the vpcId.
-
getAcl
public GetAclResponse getAcl(GetAclRequest getAclRequest)
Get the detail acl information of specified vpc.- 参数:
getAclRequest- The request containing all options for getting the acl info.- 返回:
- A acl detail model for the vpcId.
-
deleteAcl
public void deleteAcl(String aclRuleId)
Delete the specified aclRule.- 参数:
aclRuleId- The id of the aclRule to delete.
-
deleteAcl
public void deleteAcl(DeleteAclRequest deleteAclRequest)
Delete the specified aclRule.- 参数:
deleteAclRequest- The request containing all options for deleting aclRule.
-
modifyAclRuleAttributes
public void modifyAclRuleAttributes(String aclRuleId, AclRule aclRule)
Modifying the special attribute to new aclRule owned by the user.- 参数:
aclRuleId- The id of the aclRuleaclRule- the aclRule after modifying
-
modifyAclRuleAttributes
public void modifyAclRuleAttributes(ModifyAclRuleAttributesRequest modifyAclRuleAttributesRequest)
Modifying the special attribute to new aclRule owned by the user.- 参数:
modifyAclRuleAttributesRequest- The request containing all options for modifying own's aclRule.
-
-