类 AclClient


  • public class AclClient
    extends AbstractBceClient
    Provides the client for accessing the Baidu Cloud network Service Access Control List (ACL).
    • 构造器详细资料

      • 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 aclRule
        aclRule - 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.