类 EsgClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.esg.EsgClient
-
public class EsgClient extends AbstractBceClient
Provides the client for accessing the Baidu Cloud network Service enterprise security group.
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 EsgClient()Constructs a new client to invoke service methods on esg.EsgClient(BceClientConfiguration clientConfiguration)Constructs a new esg client using the client configuration to access esg.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidauthorizeEsgRule(EsgRuleOperateRequest request)Authorize enterprise security group rules to a specified enterprise security groupCreateEsgResponsecreateEsg(CreateEsgRequest request)Create an enterprise security group with the specified options.voiddeleteEsg(DeleteEsgRequest request)Delete the specified enterprise security group.voiddeleteEsg(String esgId)Delete the specified enterprise security group.voiddeleteEsgRule(DeleteEsgRuleRequest request)Delete an enterprise security group rule from the specified enterprise security groupvoiddeleteEsgRule(String esgRuleId)Delete the specified enterprise security group rule.ListEsgResponselistEsg(ListEsgRequest request)List enterprise security group owned by the authenticated user.voidupdateEsgRule(UpdateEsgRuleRequest request)Update the specified enterprise security group rule.-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
EsgClient
public EsgClient()
Constructs a new client to invoke service methods on esg.
-
EsgClient
public EsgClient(BceClientConfiguration clientConfiguration)
Constructs a new esg client using the client configuration to access esg.
-
-
方法详细资料
-
createEsg
public CreateEsgResponse createEsg(CreateEsgRequest request)
Create an enterprise security group with the specified options. You must fill field of clientToken,which is especially for keeping idempotent.- 参数:
request- The request containing all options for creating a enterprise security group.- 返回:
- enterprise security group id newly created
-
listEsg
public ListEsgResponse listEsg(ListEsgRequest request)
List enterprise security group owned by the authenticated user.- 参数:
request- The request containing all options for listing enterprise security group owned by user.- 返回:
- The response with list of enterprise security group which contains enterprise security group rules owned by user.
-
deleteEsg
public void deleteEsg(DeleteEsgRequest request)
Delete the specified enterprise security group.- 参数:
request- The request containing all options for deleting the specified enterprise security group owned by user.
-
deleteEsg
public void deleteEsg(String esgId)
Delete the specified enterprise security group.- 参数:
esgId- The id of enterprise security group that will be deleted.
-
authorizeEsgRule
public void authorizeEsgRule(EsgRuleOperateRequest request)
Authorize enterprise security group rules to a specified enterprise security group- 参数:
request- The request containing all options for authorizing enterprise security group rule
-
deleteEsgRule
public void deleteEsgRule(DeleteEsgRuleRequest request)
Delete an enterprise security group rule from the specified enterprise security group- 参数:
request- The request containing all options for deleting enterprise security group rule
-
deleteEsgRule
public void deleteEsgRule(String esgRuleId)
Delete the specified enterprise security group rule.- 参数:
esgRuleId- The id of enterprise security group that will be deleted.
-
updateEsgRule
public void updateEsgRule(UpdateEsgRuleRequest request)
Update the specified enterprise security group rule.- 参数:
request- The request containing all options for updating enterprise security group rule.
-
-