|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.AbstractBceClient
com.baidubce.services.acl.AclClient
public class AclClient
Provides the client for accessing the Baidu Cloud network Service Access Control List (ACL).
Field Summary |
---|
Fields inherited from class com.baidubce.AbstractBceClient |
---|
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
createAcl(CreateAclRequest createAclRequest)
Create a acl with the specified options. |
void |
createAcl(List<AclRule> aclRules)
Create a acl with the specified options. |
void |
deleteAcl(DeleteAclRequest deleteAclRequest)
Delete the specified aclRule. |
void |
deleteAcl(String aclRuleId)
Delete the specified aclRule. |
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 |
GetAclResponse |
getAcl(GetAclRequest getAclRequest)
Get the detail acl information of specified vpc. |
GetAclResponse |
getAcl(String vpcId)
Get the detail acl information of specified vpc. |
ListAclResponse |
listAclRules(ListAclRequest listAclRequest)
Return a list of aclRules owned by the specified subnet. |
ListAclResponse |
listAclRules(String subnetId)
Return a list of aclRules owned by the specified subnet. |
void |
modifyAclRuleAttributes(ModifyAclRuleAttributesRequest modifyAclRuleAttributesRequest)
Modifying the special attribute to new aclRule owned by the user. |
void |
modifyAclRuleAttributes(String aclRuleId,
AclRule aclRule)
Modifying the special attribute to new aclRule owned by the user. |
Methods inherited from class com.baidubce.AbstractBceClient |
---|
getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AclClient()
public AclClient(AclClientConfiguration clientConfiguration)
clientConfiguration
- The network client configuration options controlling how this client
connects to network (e.g. proxy settings, retry counts, etc).Method Detail |
---|
protected void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest)
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.public void createAcl(List<AclRule> aclRules)
aclRules
- The rules of aclpublic void createAcl(CreateAclRequest createAclRequest)
createAclRequest
- The request containing all options for creating a acl.public ListAclResponse listAclRules(String subnetId)
public ListAclResponse listAclRules(ListAclRequest listAclRequest)
listAclRequest
- The request containing all options for listing subnet's aclRule.
public GetAclResponse getAcl(String vpcId)
vpcId
- The id of the network.
public GetAclResponse getAcl(GetAclRequest getAclRequest)
getAclRequest
- The request containing all options for getting the acl info.
public void deleteAcl(String aclRuleId)
aclRuleId
- The id of the aclRule to delete.public void deleteAcl(DeleteAclRequest deleteAclRequest)
deleteAclRequest
- The request containing all options for deleting aclRule.public void modifyAclRuleAttributes(String aclRuleId, AclRule aclRule)
aclRuleId
- The id of the aclRuleaclRule
- the aclRule after modifyingpublic void modifyAclRuleAttributes(ModifyAclRuleAttributesRequest modifyAclRuleAttributesRequest)
modifyAclRuleAttributesRequest
- The request containing all options for modifying own's aclRule.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |