public class AclClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic 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).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.Copyright © 2023. All rights reserved.