Package cn.ucloud.uaccount.client
Class UAccountClient
- java.lang.Object
-
- cn.ucloud.common.client.DefaultClient
-
- cn.ucloud.uaccount.client.UAccountClient
-
- All Implemented Interfaces:
Client,UAccountClientInterface
public class UAccountClient extends DefaultClient implements UAccountClientInterface
This client is used to call actions of **UAccount** service
-
-
Constructor Summary
Constructors Constructor Description UAccountClient(Config config, Credential credential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddMemberToProjectResponseaddMemberToProject(AddMemberToProjectRequest request)AddMemberToProject - 添加成员到项目FreezeMemberResponsefreezeMember(FreezeMemberRequest request)FreezeMember - 冻结成员GetNetworkMaskResponsegetNetworkMask(GetNetworkMaskRequest request)GetNetworkMask - 查询登录与API调用的网络掩码GetProjectListResponsegetProjectList(GetProjectListRequest request)GetProjectList - 获取帐号下的项目列表GetRegionResponsegetRegion(GetRegionRequest request)GetRegion - 获取地域和可用区列表InviteSubaccountResponseinviteSubaccount(InviteSubaccountRequest request)InviteSubaccount - 邀请子帐号成员RemoveMemberFromProjectResponseremoveMemberFromProject(RemoveMemberFromProjectRequest request)RemoveMemberFromProject - 从项目中移除成员SetNetworkMaskResponsesetNetworkMask(SetNetworkMaskRequest request)SetNetworkMask - 设置登录与API调用的网络掩码-
Methods inherited from class cn.ucloud.common.client.DefaultClient
getConfig, getCredential, getTransport, invoke, setConfig, setCredential, setTransport, useMiddleware
-
-
-
-
Constructor Detail
-
UAccountClient
public UAccountClient(Config config, Credential credential)
-
-
Method Detail
-
addMemberToProject
public AddMemberToProjectResponse addMemberToProject(AddMemberToProjectRequest request) throws UCloudException
AddMemberToProject - 添加成员到项目- Specified by:
addMemberToProjectin interfaceUAccountClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
freezeMember
public FreezeMemberResponse freezeMember(FreezeMemberRequest request) throws UCloudException
FreezeMember - 冻结成员- Specified by:
freezeMemberin interfaceUAccountClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getNetworkMask
public GetNetworkMaskResponse getNetworkMask(GetNetworkMaskRequest request) throws UCloudException
GetNetworkMask - 查询登录与API调用的网络掩码- Specified by:
getNetworkMaskin interfaceUAccountClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getProjectList
public GetProjectListResponse getProjectList(GetProjectListRequest request) throws UCloudException
GetProjectList - 获取帐号下的项目列表- Specified by:
getProjectListin interfaceUAccountClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getRegion
public GetRegionResponse getRegion(GetRegionRequest request) throws UCloudException
GetRegion - 获取地域和可用区列表- Specified by:
getRegionin interfaceUAccountClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
inviteSubaccount
public InviteSubaccountResponse inviteSubaccount(InviteSubaccountRequest request) throws UCloudException
InviteSubaccount - 邀请子帐号成员- Specified by:
inviteSubaccountin interfaceUAccountClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
removeMemberFromProject
public RemoveMemberFromProjectResponse removeMemberFromProject(RemoveMemberFromProjectRequest request) throws UCloudException
RemoveMemberFromProject - 从项目中移除成员- Specified by:
removeMemberFromProjectin interfaceUAccountClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
setNetworkMask
public SetNetworkMaskResponse setNetworkMask(SetNetworkMaskRequest request) throws UCloudException
SetNetworkMask - 设置登录与API调用的网络掩码- Specified by:
setNetworkMaskin interfaceUAccountClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
-