Documentation ¶
Index ¶
- Constants
- type AcceptOrganizationInvitationRequest
- type AcceptOrganizationInvitationResponse
- type AddOrganizationNodeRequest
- type AddOrganizationNodeResponse
- type CancelOrganizationInvitationRequest
- type CancelOrganizationInvitationResponse
- type Client
- func (c *Client) AcceptOrganizationInvitation(request *AcceptOrganizationInvitationRequest) (response *AcceptOrganizationInvitationResponse, err error)
- func (c *Client) AcceptOrganizationInvitationWithContext(ctx context.Context, request *AcceptOrganizationInvitationRequest) (response *AcceptOrganizationInvitationResponse, err error)
- func (c *Client) AddOrganizationNode(request *AddOrganizationNodeRequest) (response *AddOrganizationNodeResponse, err error)
- func (c *Client) AddOrganizationNodeWithContext(ctx context.Context, request *AddOrganizationNodeRequest) (response *AddOrganizationNodeResponse, err error)
- func (c *Client) CancelOrganizationInvitation(request *CancelOrganizationInvitationRequest) (response *CancelOrganizationInvitationResponse, err error)
- func (c *Client) CancelOrganizationInvitationWithContext(ctx context.Context, request *CancelOrganizationInvitationRequest) (response *CancelOrganizationInvitationResponse, err error)
- func (c *Client) CreateOrganization(request *CreateOrganizationRequest) (response *CreateOrganizationResponse, err error)
- func (c *Client) CreateOrganizationWithContext(ctx context.Context, request *CreateOrganizationRequest) (response *CreateOrganizationResponse, err error)
- func (c *Client) DeleteOrganization(request *DeleteOrganizationRequest) (response *DeleteOrganizationResponse, err error)
- func (c *Client) DeleteOrganizationMemberFromNode(request *DeleteOrganizationMemberFromNodeRequest) (response *DeleteOrganizationMemberFromNodeResponse, err error)
- func (c *Client) DeleteOrganizationMemberFromNodeWithContext(ctx context.Context, request *DeleteOrganizationMemberFromNodeRequest) (response *DeleteOrganizationMemberFromNodeResponse, err error)
- func (c *Client) DeleteOrganizationMembers(request *DeleteOrganizationMembersRequest) (response *DeleteOrganizationMembersResponse, err error)
- func (c *Client) DeleteOrganizationMembersWithContext(ctx context.Context, request *DeleteOrganizationMembersRequest) (response *DeleteOrganizationMembersResponse, err error)
- func (c *Client) DeleteOrganizationNodes(request *DeleteOrganizationNodesRequest) (response *DeleteOrganizationNodesResponse, err error)
- func (c *Client) DeleteOrganizationNodesWithContext(ctx context.Context, request *DeleteOrganizationNodesRequest) (response *DeleteOrganizationNodesResponse, err error)
- func (c *Client) DeleteOrganizationWithContext(ctx context.Context, request *DeleteOrganizationRequest) (response *DeleteOrganizationResponse, err error)
- func (c *Client) DenyOrganizationInvitation(request *DenyOrganizationInvitationRequest) (response *DenyOrganizationInvitationResponse, err error)
- func (c *Client) DenyOrganizationInvitationWithContext(ctx context.Context, request *DenyOrganizationInvitationRequest) (response *DenyOrganizationInvitationResponse, err error)
- func (c *Client) GetOrganization(request *GetOrganizationRequest) (response *GetOrganizationResponse, err error)
- func (c *Client) GetOrganizationMember(request *GetOrganizationMemberRequest) (response *GetOrganizationMemberResponse, err error)
- func (c *Client) GetOrganizationMemberWithContext(ctx context.Context, request *GetOrganizationMemberRequest) (response *GetOrganizationMemberResponse, err error)
- func (c *Client) GetOrganizationWithContext(ctx context.Context, request *GetOrganizationRequest) (response *GetOrganizationResponse, err error)
- func (c *Client) ListOrganizationInvitations(request *ListOrganizationInvitationsRequest) (response *ListOrganizationInvitationsResponse, err error)
- func (c *Client) ListOrganizationInvitationsWithContext(ctx context.Context, request *ListOrganizationInvitationsRequest) (response *ListOrganizationInvitationsResponse, err error)
- func (c *Client) ListOrganizationMembers(request *ListOrganizationMembersRequest) (response *ListOrganizationMembersResponse, err error)
- func (c *Client) ListOrganizationMembersWithContext(ctx context.Context, request *ListOrganizationMembersRequest) (response *ListOrganizationMembersResponse, err error)
- func (c *Client) ListOrganizationNodeMembers(request *ListOrganizationNodeMembersRequest) (response *ListOrganizationNodeMembersResponse, err error)
- func (c *Client) ListOrganizationNodeMembersWithContext(ctx context.Context, request *ListOrganizationNodeMembersRequest) (response *ListOrganizationNodeMembersResponse, err error)
- func (c *Client) ListOrganizationNodes(request *ListOrganizationNodesRequest) (response *ListOrganizationNodesResponse, err error)
- func (c *Client) ListOrganizationNodesWithContext(ctx context.Context, request *ListOrganizationNodesRequest) (response *ListOrganizationNodesResponse, err error)
- func (c *Client) MoveOrganizationMembersToNode(request *MoveOrganizationMembersToNodeRequest) (response *MoveOrganizationMembersToNodeResponse, err error)
- func (c *Client) MoveOrganizationMembersToNodeWithContext(ctx context.Context, request *MoveOrganizationMembersToNodeRequest) (response *MoveOrganizationMembersToNodeResponse, err error)
- func (c *Client) QuitOrganization(request *QuitOrganizationRequest) (response *QuitOrganizationResponse, err error)
- func (c *Client) QuitOrganizationWithContext(ctx context.Context, request *QuitOrganizationRequest) (response *QuitOrganizationResponse, err error)
- func (c *Client) SendOrganizationInvitation(request *SendOrganizationInvitationRequest) (response *SendOrganizationInvitationResponse, err error)
- func (c *Client) SendOrganizationInvitationWithContext(ctx context.Context, request *SendOrganizationInvitationRequest) (response *SendOrganizationInvitationResponse, err error)
- func (c *Client) UpdateOrganizationMember(request *UpdateOrganizationMemberRequest) (response *UpdateOrganizationMemberResponse, err error)
- func (c *Client) UpdateOrganizationMemberWithContext(ctx context.Context, request *UpdateOrganizationMemberRequest) (response *UpdateOrganizationMemberResponse, err error)
- func (c *Client) UpdateOrganizationNode(request *UpdateOrganizationNodeRequest) (response *UpdateOrganizationNodeResponse, err error)
- func (c *Client) UpdateOrganizationNodeWithContext(ctx context.Context, request *UpdateOrganizationNodeRequest) (response *UpdateOrganizationNodeResponse, err error)
- type CreateOrganizationRequest
- type CreateOrganizationResponse
- type DeleteOrganizationMemberFromNodeRequest
- type DeleteOrganizationMemberFromNodeResponse
- type DeleteOrganizationMembersRequest
- type DeleteOrganizationMembersResponse
- type DeleteOrganizationNodesRequest
- type DeleteOrganizationNodesResponse
- type DeleteOrganizationRequest
- type DeleteOrganizationResponse
- type DenyOrganizationInvitationRequest
- type DenyOrganizationInvitationResponse
- type GetOrganizationMemberRequest
- type GetOrganizationMemberResponse
- type GetOrganizationRequest
- type GetOrganizationResponse
- type ListOrganizationInvitationsRequest
- type ListOrganizationInvitationsResponse
- type ListOrganizationMembersRequest
- type ListOrganizationMembersResponse
- type ListOrganizationNodeMembersRequest
- type ListOrganizationNodeMembersResponse
- type ListOrganizationNodesRequest
- type ListOrganizationNodesResponse
- type MoveOrganizationMembersToNodeRequest
- type MoveOrganizationMembersToNodeResponse
- type OrgInvitation
- type OrgMember
- type OrgNode
- type QuitOrganizationRequest
- type QuitOrganizationResponse
- type SendOrganizationInvitationRequest
- type SendOrganizationInvitationResponse
- type UpdateOrganizationMemberRequest
- type UpdateOrganizationMemberResponse
- type UpdateOrganizationNodeRequest
- type UpdateOrganizationNodeResponse
Constants ¶
const ( // Members cannot be deleted from the root unit. FAILEDOPERATION_DISABLEDELETEMEMBERFROMROOTNODE = "FailedOperation.DisableDeleteMemberFromRootNode" // You cannot quit an organization created by yourself. FAILEDOPERATION_DISABLEQUITSELFCREATEDORGANIZATION = "FailedOperation.DisableQuitSelfCreatedOrganization" // You are already in this organization. FAILEDOPERATION_INORGANIZATIONALREADY = "FailedOperation.InOrganizationAlready" // The name is already in use. FAILEDOPERATION_MEMBERNAMEUSED = "FailedOperation.MemberNameUsed" // There are members in this organizational unit. FAILEDOPERATION_NODENOTEMPTY = "FailedOperation.NodeNotEmpty" // The organization already exists. FAILEDOPERATION_ORGANIZATIONEXISTALREADY = "FailedOperation.OrganizationExistAlready" // There are members in this organization. FAILEDOPERATION_ORGANIZATIONNOTEMPTY = "FailedOperation.OrganizationNotEmpty" // The invitation has already been sent before. FAILEDOPERATION_RESENTINVITATION = "FailedOperation.ReSentInvitation" // A UIN does not belong to this organization. FAILEDOPERATION_SOMEUINSNOTINORGANIZATION = "FailedOperation.SomeUinsNotInOrganization" // The user has already joined the organization. FAILEDOPERATION_USERINORGANIZATION = "FailedOperation.UserInOrganization" // The account that sent the invitation is not a primary account. FAILEDOPERATION_USERNOTREGISTER = "FailedOperation.UserNotRegister" // The number of organization members has reached the maximum. LIMITEXCEEDED_MEMBERS = "LimitExceeded.Members" // Too many organizational unit levels. LIMITEXCEEDED_NODEDEPTHEXCEEDLIMIT = "LimitExceeded.NodeDepthExceedLimit" // The number of organizational units has reached the upper limit. LIMITEXCEEDED_NODEEXCEEDLIMIT = "LimitExceeded.NodeExceedLimit" // The organizational unit name is already in use. RESOURCEINUSE_NODENAME = "ResourceInUse.NodeName" // This name is already in use. RESOURCEINUSE_NODENAMEUSED = "ResourceInUse.NodeNameUsed" // The invitation information does not exist. RESOURCENOTFOUND_INVITATIONNOTEXIST = "ResourceNotFound.InvitationNotExist" // The member does not exist. RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" // The organizational unit does not exist. RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" // The organization does not exist. RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist" // The user does not exist. RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist" )
const APIVersion = "2018-12-25"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptOrganizationInvitationRequest ¶
type AcceptOrganizationInvitationRequest struct { *tchttp.BaseRequest // Invitation ID Id *uint64 `json:"Id,omitempty" name:"Id"` }
func NewAcceptOrganizationInvitationRequest ¶
func NewAcceptOrganizationInvitationRequest() (request *AcceptOrganizationInvitationRequest)
func (*AcceptOrganizationInvitationRequest) FromJsonString ¶
func (r *AcceptOrganizationInvitationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AcceptOrganizationInvitationRequest) ToJsonString ¶
func (r *AcceptOrganizationInvitationRequest) ToJsonString() string
type AcceptOrganizationInvitationResponse ¶
type AcceptOrganizationInvitationResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAcceptOrganizationInvitationResponse ¶
func NewAcceptOrganizationInvitationResponse() (response *AcceptOrganizationInvitationResponse)
func (*AcceptOrganizationInvitationResponse) FromJsonString ¶
func (r *AcceptOrganizationInvitationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AcceptOrganizationInvitationResponse) ToJsonString ¶
func (r *AcceptOrganizationInvitationResponse) ToJsonString() string
type AddOrganizationNodeRequest ¶
type AddOrganizationNodeRequest struct { *tchttp.BaseRequest // Parent organizational unit ID ParentNodeId *uint64 `json:"ParentNodeId,omitempty" name:"ParentNodeId"` // Organizational unit name Name *string `json:"Name,omitempty" name:"Name"` }
func NewAddOrganizationNodeRequest ¶
func NewAddOrganizationNodeRequest() (request *AddOrganizationNodeRequest)
func (*AddOrganizationNodeRequest) FromJsonString ¶
func (r *AddOrganizationNodeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddOrganizationNodeRequest) ToJsonString ¶
func (r *AddOrganizationNodeRequest) ToJsonString() string
type AddOrganizationNodeResponse ¶
type AddOrganizationNodeResponse struct { *tchttp.BaseResponse Response *struct { // Organizational unit ID NodeId *uint64 `json:"NodeId,omitempty" name:"NodeId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAddOrganizationNodeResponse ¶
func NewAddOrganizationNodeResponse() (response *AddOrganizationNodeResponse)
func (*AddOrganizationNodeResponse) FromJsonString ¶
func (r *AddOrganizationNodeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddOrganizationNodeResponse) ToJsonString ¶
func (r *AddOrganizationNodeResponse) ToJsonString() string
type CancelOrganizationInvitationRequest ¶
type CancelOrganizationInvitationRequest struct { *tchttp.BaseRequest // Invitation ID Id *uint64 `json:"Id,omitempty" name:"Id"` }
func NewCancelOrganizationInvitationRequest ¶
func NewCancelOrganizationInvitationRequest() (request *CancelOrganizationInvitationRequest)
func (*CancelOrganizationInvitationRequest) FromJsonString ¶
func (r *CancelOrganizationInvitationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CancelOrganizationInvitationRequest) ToJsonString ¶
func (r *CancelOrganizationInvitationRequest) ToJsonString() string
type CancelOrganizationInvitationResponse ¶
type CancelOrganizationInvitationResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCancelOrganizationInvitationResponse ¶
func NewCancelOrganizationInvitationResponse() (response *CancelOrganizationInvitationResponse)
func (*CancelOrganizationInvitationResponse) FromJsonString ¶
func (r *CancelOrganizationInvitationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CancelOrganizationInvitationResponse) ToJsonString ¶
func (r *CancelOrganizationInvitationResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AcceptOrganizationInvitation ¶
func (c *Client) AcceptOrganizationInvitation(request *AcceptOrganizationInvitationRequest) (response *AcceptOrganizationInvitationResponse, err error)
AcceptOrganizationInvitation This API is used to accept an invitation to an organization.
error code that may be returned:
FAILEDOPERATION_INORGANIZATIONALREADY = "FailedOperation.InOrganizationAlready" RESOURCENOTFOUND_INVITATIONNOTEXIST = "ResourceNotFound.InvitationNotExist"
func (*Client) AcceptOrganizationInvitationWithContext ¶
func (c *Client) AcceptOrganizationInvitationWithContext(ctx context.Context, request *AcceptOrganizationInvitationRequest) (response *AcceptOrganizationInvitationResponse, err error)
AcceptOrganizationInvitation This API is used to accept an invitation to an organization.
error code that may be returned:
FAILEDOPERATION_INORGANIZATIONALREADY = "FailedOperation.InOrganizationAlready" RESOURCENOTFOUND_INVITATIONNOTEXIST = "ResourceNotFound.InvitationNotExist"
func (*Client) AddOrganizationNode ¶
func (c *Client) AddOrganizationNode(request *AddOrganizationNodeRequest) (response *AddOrganizationNodeResponse, err error)
AddOrganizationNode This API is used to add an organizational unit.
error code that may be returned:
LIMITEXCEEDED_NODEDEPTHEXCEEDLIMIT = "LimitExceeded.NodeDepthExceedLimit" LIMITEXCEEDED_NODEEXCEEDLIMIT = "LimitExceeded.NodeExceedLimit" RESOURCEINUSE_NODENAME = "ResourceInUse.NodeName" RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) AddOrganizationNodeWithContext ¶
func (c *Client) AddOrganizationNodeWithContext(ctx context.Context, request *AddOrganizationNodeRequest) (response *AddOrganizationNodeResponse, err error)
AddOrganizationNode This API is used to add an organizational unit.
error code that may be returned:
LIMITEXCEEDED_NODEDEPTHEXCEEDLIMIT = "LimitExceeded.NodeDepthExceedLimit" LIMITEXCEEDED_NODEEXCEEDLIMIT = "LimitExceeded.NodeExceedLimit" RESOURCEINUSE_NODENAME = "ResourceInUse.NodeName" RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) CancelOrganizationInvitation ¶
func (c *Client) CancelOrganizationInvitation(request *CancelOrganizationInvitationRequest) (response *CancelOrganizationInvitationResponse, err error)
CancelOrganizationInvitation This API is used to cancel an invitation to an organization.
error code that may be returned:
RESOURCENOTFOUND_INVITATIONNOTEXIST = "ResourceNotFound.InvitationNotExist"
func (*Client) CancelOrganizationInvitationWithContext ¶
func (c *Client) CancelOrganizationInvitationWithContext(ctx context.Context, request *CancelOrganizationInvitationRequest) (response *CancelOrganizationInvitationResponse, err error)
CancelOrganizationInvitation This API is used to cancel an invitation to an organization.
error code that may be returned:
RESOURCENOTFOUND_INVITATIONNOTEXIST = "ResourceNotFound.InvitationNotExist"
func (*Client) CreateOrganization ¶
func (c *Client) CreateOrganization(request *CreateOrganizationRequest) (response *CreateOrganizationResponse, err error)
CreateOrganization This API is used to create an organization.
error code that may be returned:
FAILEDOPERATION_ORGANIZATIONEXISTALREADY = "FailedOperation.OrganizationExistAlready" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) CreateOrganizationWithContext ¶
func (c *Client) CreateOrganizationWithContext(ctx context.Context, request *CreateOrganizationRequest) (response *CreateOrganizationResponse, err error)
CreateOrganization This API is used to create an organization.
error code that may be returned:
FAILEDOPERATION_ORGANIZATIONEXISTALREADY = "FailedOperation.OrganizationExistAlready" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) DeleteOrganization ¶
func (c *Client) DeleteOrganization(request *DeleteOrganizationRequest) (response *DeleteOrganizationResponse, err error)
DeleteOrganization This API is used to delete an organization.
error code that may be returned:
FAILEDOPERATION_ORGANIZATIONNOTEMPTY = "FailedOperation.OrganizationNotEmpty" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) DeleteOrganizationMemberFromNode ¶
func (c *Client) DeleteOrganizationMemberFromNode(request *DeleteOrganizationMemberFromNodeRequest) (response *DeleteOrganizationMemberFromNodeResponse, err error)
DeleteOrganizationMemberFromNode This API is used to delete an organization member.
error code that may be returned:
FAILEDOPERATION_DISABLEDELETEMEMBERFROMROOTNODE = "FailedOperation.DisableDeleteMemberFromRootNode" RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) DeleteOrganizationMemberFromNodeWithContext ¶
func (c *Client) DeleteOrganizationMemberFromNodeWithContext(ctx context.Context, request *DeleteOrganizationMemberFromNodeRequest) (response *DeleteOrganizationMemberFromNodeResponse, err error)
DeleteOrganizationMemberFromNode This API is used to delete an organization member.
error code that may be returned:
FAILEDOPERATION_DISABLEDELETEMEMBERFROMROOTNODE = "FailedOperation.DisableDeleteMemberFromRootNode" RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) DeleteOrganizationMembers ¶
func (c *Client) DeleteOrganizationMembers(request *DeleteOrganizationMembersRequest) (response *DeleteOrganizationMembersResponse, err error)
DeleteOrganizationMembers This API is used to delete multiple organization members in a single request.
error code that may be returned:
RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) DeleteOrganizationMembersWithContext ¶
func (c *Client) DeleteOrganizationMembersWithContext(ctx context.Context, request *DeleteOrganizationMembersRequest) (response *DeleteOrganizationMembersResponse, err error)
DeleteOrganizationMembers This API is used to delete multiple organization members in a single request.
error code that may be returned:
RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) DeleteOrganizationNodes ¶
func (c *Client) DeleteOrganizationNodes(request *DeleteOrganizationNodesRequest) (response *DeleteOrganizationNodesResponse, err error)
DeleteOrganizationNodes This API is used to delete multiple organizational units in a single request.
error code that may be returned:
FAILEDOPERATION_NODENOTEMPTY = "FailedOperation.NodeNotEmpty" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) DeleteOrganizationNodesWithContext ¶
func (c *Client) DeleteOrganizationNodesWithContext(ctx context.Context, request *DeleteOrganizationNodesRequest) (response *DeleteOrganizationNodesResponse, err error)
DeleteOrganizationNodes This API is used to delete multiple organizational units in a single request.
error code that may be returned:
FAILEDOPERATION_NODENOTEMPTY = "FailedOperation.NodeNotEmpty" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) DeleteOrganizationWithContext ¶
func (c *Client) DeleteOrganizationWithContext(ctx context.Context, request *DeleteOrganizationRequest) (response *DeleteOrganizationResponse, err error)
DeleteOrganization This API is used to delete an organization.
error code that may be returned:
FAILEDOPERATION_ORGANIZATIONNOTEMPTY = "FailedOperation.OrganizationNotEmpty" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) DenyOrganizationInvitation ¶
func (c *Client) DenyOrganizationInvitation(request *DenyOrganizationInvitationRequest) (response *DenyOrganizationInvitationResponse, err error)
DenyOrganizationInvitation This API is used to decline an invitation to an organization.
error code that may be returned:
RESOURCENOTFOUND_INVITATIONNOTEXIST = "ResourceNotFound.InvitationNotExist"
func (*Client) DenyOrganizationInvitationWithContext ¶
func (c *Client) DenyOrganizationInvitationWithContext(ctx context.Context, request *DenyOrganizationInvitationRequest) (response *DenyOrganizationInvitationResponse, err error)
DenyOrganizationInvitation This API is used to decline an invitation to an organization.
error code that may be returned:
RESOURCENOTFOUND_INVITATIONNOTEXIST = "ResourceNotFound.InvitationNotExist"
func (*Client) GetOrganization ¶
func (c *Client) GetOrganization(request *GetOrganizationRequest) (response *GetOrganizationResponse, err error)
GetOrganization This API is used to obtain information on organizations.
error code that may be returned:
RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) GetOrganizationMember ¶
func (c *Client) GetOrganizationMember(request *GetOrganizationMemberRequest) (response *GetOrganizationMemberResponse, err error)
GetOrganizationMember This API is used to obtain information on organization members.
error code that may be returned:
RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) GetOrganizationMemberWithContext ¶
func (c *Client) GetOrganizationMemberWithContext(ctx context.Context, request *GetOrganizationMemberRequest) (response *GetOrganizationMemberResponse, err error)
GetOrganizationMember This API is used to obtain information on organization members.
error code that may be returned:
RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) GetOrganizationWithContext ¶
func (c *Client) GetOrganizationWithContext(ctx context.Context, request *GetOrganizationRequest) (response *GetOrganizationResponse, err error)
GetOrganization This API is used to obtain information on organizations.
error code that may be returned:
RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) ListOrganizationInvitations ¶
func (c *Client) ListOrganizationInvitations(request *ListOrganizationInvitationsRequest) (response *ListOrganizationInvitationsResponse, err error)
ListOrganizationInvitations This API is used to obtain an invitation list.
error code that may be returned:
RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) ListOrganizationInvitationsWithContext ¶
func (c *Client) ListOrganizationInvitationsWithContext(ctx context.Context, request *ListOrganizationInvitationsRequest) (response *ListOrganizationInvitationsResponse, err error)
ListOrganizationInvitations This API is used to obtain an invitation list.
error code that may be returned:
RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) ListOrganizationMembers ¶
func (c *Client) ListOrganizationMembers(request *ListOrganizationMembersRequest) (response *ListOrganizationMembersResponse, err error)
ListOrganizationMembers This API is used to obtain a list of organization members.
error code that may be returned:
RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) ListOrganizationMembersWithContext ¶
func (c *Client) ListOrganizationMembersWithContext(ctx context.Context, request *ListOrganizationMembersRequest) (response *ListOrganizationMembersResponse, err error)
ListOrganizationMembers This API is used to obtain a list of organization members.
error code that may be returned:
RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) ListOrganizationNodeMembers ¶
func (c *Client) ListOrganizationNodeMembers(request *ListOrganizationNodeMembersRequest) (response *ListOrganizationNodeMembersResponse, err error)
ListOrganizationNodeMembers This API is used to obtain a list of organizational unit members.
error code that may be returned:
RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) ListOrganizationNodeMembersWithContext ¶
func (c *Client) ListOrganizationNodeMembersWithContext(ctx context.Context, request *ListOrganizationNodeMembersRequest) (response *ListOrganizationNodeMembersResponse, err error)
ListOrganizationNodeMembers This API is used to obtain a list of organizational unit members.
error code that may be returned:
RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) ListOrganizationNodes ¶
func (c *Client) ListOrganizationNodes(request *ListOrganizationNodesRequest) (response *ListOrganizationNodesResponse, err error)
ListOrganizationNodes This API is used to obtain a list of organizational units.
error code that may be returned:
RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) ListOrganizationNodesWithContext ¶
func (c *Client) ListOrganizationNodesWithContext(ctx context.Context, request *ListOrganizationNodesRequest) (response *ListOrganizationNodesResponse, err error)
ListOrganizationNodes This API is used to obtain a list of organizational units.
error code that may be returned:
RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) MoveOrganizationMembersToNode ¶
func (c *Client) MoveOrganizationMembersToNode(request *MoveOrganizationMembersToNodeRequest) (response *MoveOrganizationMembersToNodeResponse, err error)
MoveOrganizationMembersToNode This API is used to move members to a specified organizational unit.
error code that may be returned:
FAILEDOPERATION_SOMEUINSNOTINORGANIZATION = "FailedOperation.SomeUinsNotInOrganization" RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) MoveOrganizationMembersToNodeWithContext ¶
func (c *Client) MoveOrganizationMembersToNodeWithContext(ctx context.Context, request *MoveOrganizationMembersToNodeRequest) (response *MoveOrganizationMembersToNodeResponse, err error)
MoveOrganizationMembersToNode This API is used to move members to a specified organizational unit.
error code that may be returned:
FAILEDOPERATION_SOMEUINSNOTINORGANIZATION = "FailedOperation.SomeUinsNotInOrganization" RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) QuitOrganization ¶
func (c *Client) QuitOrganization(request *QuitOrganizationRequest) (response *QuitOrganizationResponse, err error)
QuitOrganization This API is used to quit an organization.
error code that may be returned:
FAILEDOPERATION_DISABLEQUITSELFCREATEDORGANIZATION = "FailedOperation.DisableQuitSelfCreatedOrganization" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) QuitOrganizationWithContext ¶
func (c *Client) QuitOrganizationWithContext(ctx context.Context, request *QuitOrganizationRequest) (response *QuitOrganizationResponse, err error)
QuitOrganization This API is used to quit an organization.
error code that may be returned:
FAILEDOPERATION_DISABLEQUITSELFCREATEDORGANIZATION = "FailedOperation.DisableQuitSelfCreatedOrganization" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) SendOrganizationInvitation ¶
func (c *Client) SendOrganizationInvitation(request *SendOrganizationInvitationRequest) (response *SendOrganizationInvitationResponse, err error)
SendOrganizationInvitation This API is used to send an invitation to join an organization.
error code that may be returned:
FAILEDOPERATION_MEMBERNAMEUSED = "FailedOperation.MemberNameUsed" FAILEDOPERATION_RESENTINVITATION = "FailedOperation.ReSentInvitation" FAILEDOPERATION_USERINORGANIZATION = "FailedOperation.UserInOrganization" FAILEDOPERATION_USERNOTREGISTER = "FailedOperation.UserNotRegister" LIMITEXCEEDED_MEMBERS = "LimitExceeded.Members" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) SendOrganizationInvitationWithContext ¶
func (c *Client) SendOrganizationInvitationWithContext(ctx context.Context, request *SendOrganizationInvitationRequest) (response *SendOrganizationInvitationResponse, err error)
SendOrganizationInvitation This API is used to send an invitation to join an organization.
error code that may be returned:
FAILEDOPERATION_MEMBERNAMEUSED = "FailedOperation.MemberNameUsed" FAILEDOPERATION_RESENTINVITATION = "FailedOperation.ReSentInvitation" FAILEDOPERATION_USERINORGANIZATION = "FailedOperation.UserInOrganization" FAILEDOPERATION_USERNOTREGISTER = "FailedOperation.UserNotRegister" LIMITEXCEEDED_MEMBERS = "LimitExceeded.Members" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist" RESOURCENOTFOUND_USERNOTEXIST = "ResourceNotFound.UserNotExist"
func (*Client) UpdateOrganizationMember ¶
func (c *Client) UpdateOrganizationMember(request *UpdateOrganizationMemberRequest) (response *UpdateOrganizationMemberResponse, err error)
UpdateOrganizationMember This API is used to update information on organization members.
error code that may be returned:
FAILEDOPERATION_MEMBERNAMEUSED = "FailedOperation.MemberNameUsed" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) UpdateOrganizationMemberWithContext ¶
func (c *Client) UpdateOrganizationMemberWithContext(ctx context.Context, request *UpdateOrganizationMemberRequest) (response *UpdateOrganizationMemberResponse, err error)
UpdateOrganizationMember This API is used to update information on organization members.
error code that may be returned:
FAILEDOPERATION_MEMBERNAMEUSED = "FailedOperation.MemberNameUsed" RESOURCENOTFOUND_MEMBERNOTEXIST = "ResourceNotFound.MemberNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) UpdateOrganizationNode ¶
func (c *Client) UpdateOrganizationNode(request *UpdateOrganizationNodeRequest) (response *UpdateOrganizationNodeResponse, err error)
UpdateOrganizationNode This API is used to update organizational units.
error code that may be returned:
LIMITEXCEEDED_NODEDEPTHEXCEEDLIMIT = "LimitExceeded.NodeDepthExceedLimit" RESOURCEINUSE_NODENAMEUSED = "ResourceInUse.NodeNameUsed" RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
func (*Client) UpdateOrganizationNodeWithContext ¶
func (c *Client) UpdateOrganizationNodeWithContext(ctx context.Context, request *UpdateOrganizationNodeRequest) (response *UpdateOrganizationNodeResponse, err error)
UpdateOrganizationNode This API is used to update organizational units.
error code that may be returned:
LIMITEXCEEDED_NODEDEPTHEXCEEDLIMIT = "LimitExceeded.NodeDepthExceedLimit" RESOURCEINUSE_NODENAMEUSED = "ResourceInUse.NodeNameUsed" RESOURCENOTFOUND_NODENOTEXIST = "ResourceNotFound.NodeNotExist" RESOURCENOTFOUND_ORGANIZATIONNOTEXIST = "ResourceNotFound.OrganizationNotExist"
type CreateOrganizationRequest ¶
type CreateOrganizationRequest struct { *tchttp.BaseRequest // Organization type; currently its value is fixed as `1` OrgType *uint64 `json:"OrgType,omitempty" name:"OrgType"` }
func NewCreateOrganizationRequest ¶
func NewCreateOrganizationRequest() (request *CreateOrganizationRequest)
func (*CreateOrganizationRequest) FromJsonString ¶
func (r *CreateOrganizationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateOrganizationRequest) ToJsonString ¶
func (r *CreateOrganizationRequest) ToJsonString() string
type CreateOrganizationResponse ¶
type CreateOrganizationResponse struct { *tchttp.BaseResponse Response *struct { // Organization ID OrgId *uint64 `json:"OrgId,omitempty" name:"OrgId"` // Creator's name Nickname *string `json:"Nickname,omitempty" name:"Nickname"` // Creator's email address Mail *string `json:"Mail,omitempty" name:"Mail"` // Organization type OrgType *uint64 `json:"OrgType,omitempty" name:"OrgType"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateOrganizationResponse ¶
func NewCreateOrganizationResponse() (response *CreateOrganizationResponse)
func (*CreateOrganizationResponse) FromJsonString ¶
func (r *CreateOrganizationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateOrganizationResponse) ToJsonString ¶
func (r *CreateOrganizationResponse) ToJsonString() string
type DeleteOrganizationMemberFromNodeRequest ¶
type DeleteOrganizationMemberFromNodeRequest struct { *tchttp.BaseRequest // UIN of the member to be deleted MemberUin *uint64 `json:"MemberUin,omitempty" name:"MemberUin"` // Organizational unit ID NodeId *uint64 `json:"NodeId,omitempty" name:"NodeId"` }
func NewDeleteOrganizationMemberFromNodeRequest ¶
func NewDeleteOrganizationMemberFromNodeRequest() (request *DeleteOrganizationMemberFromNodeRequest)
func (*DeleteOrganizationMemberFromNodeRequest) FromJsonString ¶
func (r *DeleteOrganizationMemberFromNodeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOrganizationMemberFromNodeRequest) ToJsonString ¶
func (r *DeleteOrganizationMemberFromNodeRequest) ToJsonString() string
type DeleteOrganizationMemberFromNodeResponse ¶
type DeleteOrganizationMemberFromNodeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteOrganizationMemberFromNodeResponse ¶
func NewDeleteOrganizationMemberFromNodeResponse() (response *DeleteOrganizationMemberFromNodeResponse)
func (*DeleteOrganizationMemberFromNodeResponse) FromJsonString ¶
func (r *DeleteOrganizationMemberFromNodeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOrganizationMemberFromNodeResponse) ToJsonString ¶
func (r *DeleteOrganizationMemberFromNodeResponse) ToJsonString() string
type DeleteOrganizationMembersRequest ¶
type DeleteOrganizationMembersRequest struct { *tchttp.BaseRequest // List of UINs of members to be deleted Uins []*uint64 `json:"Uins,omitempty" name:"Uins"` }
func NewDeleteOrganizationMembersRequest ¶
func NewDeleteOrganizationMembersRequest() (request *DeleteOrganizationMembersRequest)
func (*DeleteOrganizationMembersRequest) FromJsonString ¶
func (r *DeleteOrganizationMembersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOrganizationMembersRequest) ToJsonString ¶
func (r *DeleteOrganizationMembersRequest) ToJsonString() string
type DeleteOrganizationMembersResponse ¶
type DeleteOrganizationMembersResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteOrganizationMembersResponse ¶
func NewDeleteOrganizationMembersResponse() (response *DeleteOrganizationMembersResponse)
func (*DeleteOrganizationMembersResponse) FromJsonString ¶
func (r *DeleteOrganizationMembersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOrganizationMembersResponse) ToJsonString ¶
func (r *DeleteOrganizationMembersResponse) ToJsonString() string
type DeleteOrganizationNodesRequest ¶
type DeleteOrganizationNodesRequest struct { *tchttp.BaseRequest // Organizational unit ID list NodeIds []*uint64 `json:"NodeIds,omitempty" name:"NodeIds"` }
func NewDeleteOrganizationNodesRequest ¶
func NewDeleteOrganizationNodesRequest() (request *DeleteOrganizationNodesRequest)
func (*DeleteOrganizationNodesRequest) FromJsonString ¶
func (r *DeleteOrganizationNodesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOrganizationNodesRequest) ToJsonString ¶
func (r *DeleteOrganizationNodesRequest) ToJsonString() string
type DeleteOrganizationNodesResponse ¶
type DeleteOrganizationNodesResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteOrganizationNodesResponse ¶
func NewDeleteOrganizationNodesResponse() (response *DeleteOrganizationNodesResponse)
func (*DeleteOrganizationNodesResponse) FromJsonString ¶
func (r *DeleteOrganizationNodesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOrganizationNodesResponse) ToJsonString ¶
func (r *DeleteOrganizationNodesResponse) ToJsonString() string
type DeleteOrganizationRequest ¶
type DeleteOrganizationRequest struct {
*tchttp.BaseRequest
}
func NewDeleteOrganizationRequest ¶
func NewDeleteOrganizationRequest() (request *DeleteOrganizationRequest)
func (*DeleteOrganizationRequest) FromJsonString ¶
func (r *DeleteOrganizationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOrganizationRequest) ToJsonString ¶
func (r *DeleteOrganizationRequest) ToJsonString() string
type DeleteOrganizationResponse ¶
type DeleteOrganizationResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteOrganizationResponse ¶
func NewDeleteOrganizationResponse() (response *DeleteOrganizationResponse)
func (*DeleteOrganizationResponse) FromJsonString ¶
func (r *DeleteOrganizationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteOrganizationResponse) ToJsonString ¶
func (r *DeleteOrganizationResponse) ToJsonString() string
type DenyOrganizationInvitationRequest ¶
type DenyOrganizationInvitationRequest struct { *tchttp.BaseRequest // Invitation ID Id *uint64 `json:"Id,omitempty" name:"Id"` }
func NewDenyOrganizationInvitationRequest ¶
func NewDenyOrganizationInvitationRequest() (request *DenyOrganizationInvitationRequest)
func (*DenyOrganizationInvitationRequest) FromJsonString ¶
func (r *DenyOrganizationInvitationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DenyOrganizationInvitationRequest) ToJsonString ¶
func (r *DenyOrganizationInvitationRequest) ToJsonString() string
type DenyOrganizationInvitationResponse ¶
type DenyOrganizationInvitationResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDenyOrganizationInvitationResponse ¶
func NewDenyOrganizationInvitationResponse() (response *DenyOrganizationInvitationResponse)
func (*DenyOrganizationInvitationResponse) FromJsonString ¶
func (r *DenyOrganizationInvitationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DenyOrganizationInvitationResponse) ToJsonString ¶
func (r *DenyOrganizationInvitationResponse) ToJsonString() string
type GetOrganizationMemberRequest ¶
type GetOrganizationMemberRequest struct { *tchttp.BaseRequest // Organization member UIN MemberUin *uint64 `json:"MemberUin,omitempty" name:"MemberUin"` }
func NewGetOrganizationMemberRequest ¶
func NewGetOrganizationMemberRequest() (request *GetOrganizationMemberRequest)
func (*GetOrganizationMemberRequest) FromJsonString ¶
func (r *GetOrganizationMemberRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetOrganizationMemberRequest) ToJsonString ¶
func (r *GetOrganizationMemberRequest) ToJsonString() string
type GetOrganizationMemberResponse ¶
type GetOrganizationMemberResponse struct { *tchttp.BaseResponse Response *struct { // Organization member UIN Uin *uint64 `json:"Uin,omitempty" name:"Uin"` // Organization member name Name *string `json:"Name,omitempty" name:"Name"` // Notes Remark *string `json:"Remark,omitempty" name:"Remark"` // Joining time JoinTime *string `json:"JoinTime,omitempty" name:"JoinTime"` // Organizational unit ID NodeId *uint64 `json:"NodeId,omitempty" name:"NodeId"` // Organizational unit name NodeName *string `json:"NodeName,omitempty" name:"NodeName"` // Parent organizational unit ID ParentNodeId *uint64 `json:"ParentNodeId,omitempty" name:"ParentNodeId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetOrganizationMemberResponse ¶
func NewGetOrganizationMemberResponse() (response *GetOrganizationMemberResponse)
func (*GetOrganizationMemberResponse) FromJsonString ¶
func (r *GetOrganizationMemberResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetOrganizationMemberResponse) ToJsonString ¶
func (r *GetOrganizationMemberResponse) ToJsonString() string
type GetOrganizationRequest ¶
type GetOrganizationRequest struct {
*tchttp.BaseRequest
}
func NewGetOrganizationRequest ¶
func NewGetOrganizationRequest() (request *GetOrganizationRequest)
func (*GetOrganizationRequest) FromJsonString ¶
func (r *GetOrganizationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetOrganizationRequest) ToJsonString ¶
func (r *GetOrganizationRequest) ToJsonString() string
type GetOrganizationResponse ¶
type GetOrganizationResponse struct { *tchttp.BaseResponse Response *struct { // Organization ID OrgId *uint64 `json:"OrgId,omitempty" name:"OrgId"` // Creator UIN HostUin *uint64 `json:"HostUin,omitempty" name:"HostUin"` // Creator's name Nickname *string `json:"Nickname,omitempty" name:"Nickname"` // Creator's email address Mail *string `json:"Mail,omitempty" name:"Mail"` // Organization type OrgType *uint64 `json:"OrgType,omitempty" name:"OrgType"` // Whether the organization is empty or not IsEmpty *uint64 `json:"IsEmpty,omitempty" name:"IsEmpty"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetOrganizationResponse ¶
func NewGetOrganizationResponse() (response *GetOrganizationResponse)
func (*GetOrganizationResponse) FromJsonString ¶
func (r *GetOrganizationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetOrganizationResponse) ToJsonString ¶
func (r *GetOrganizationResponse) ToJsonString() string
type ListOrganizationInvitationsRequest ¶
type ListOrganizationInvitationsRequest struct { *tchttp.BaseRequest // Whether to list the invitations you received or the invitations you sent. `1`: list the invitations you received; `0`: list the invitations you sent. Invited *uint64 `json:"Invited,omitempty" name:"Invited"` // Offset Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Limit Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewListOrganizationInvitationsRequest ¶
func NewListOrganizationInvitationsRequest() (request *ListOrganizationInvitationsRequest)
func (*ListOrganizationInvitationsRequest) FromJsonString ¶
func (r *ListOrganizationInvitationsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListOrganizationInvitationsRequest) ToJsonString ¶
func (r *ListOrganizationInvitationsRequest) ToJsonString() string
type ListOrganizationInvitationsResponse ¶
type ListOrganizationInvitationsResponse struct { *tchttp.BaseResponse Response *struct { // List of invitations Invitations []*OrgInvitation `json:"Invitations,omitempty" name:"Invitations"` // Total number of results TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListOrganizationInvitationsResponse ¶
func NewListOrganizationInvitationsResponse() (response *ListOrganizationInvitationsResponse)
func (*ListOrganizationInvitationsResponse) FromJsonString ¶
func (r *ListOrganizationInvitationsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListOrganizationInvitationsResponse) ToJsonString ¶
func (r *ListOrganizationInvitationsResponse) ToJsonString() string
type ListOrganizationMembersRequest ¶
type ListOrganizationMembersRequest struct { *tchttp.BaseRequest // Offset Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Limit Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewListOrganizationMembersRequest ¶
func NewListOrganizationMembersRequest() (request *ListOrganizationMembersRequest)
func (*ListOrganizationMembersRequest) FromJsonString ¶
func (r *ListOrganizationMembersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListOrganizationMembersRequest) ToJsonString ¶
func (r *ListOrganizationMembersRequest) ToJsonString() string
type ListOrganizationMembersResponse ¶
type ListOrganizationMembersResponse struct { *tchttp.BaseResponse Response *struct { // Member list Members []*OrgMember `json:"Members,omitempty" name:"Members"` // Total number of results TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListOrganizationMembersResponse ¶
func NewListOrganizationMembersResponse() (response *ListOrganizationMembersResponse)
func (*ListOrganizationMembersResponse) FromJsonString ¶
func (r *ListOrganizationMembersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListOrganizationMembersResponse) ToJsonString ¶
func (r *ListOrganizationMembersResponse) ToJsonString() string
type ListOrganizationNodeMembersRequest ¶
type ListOrganizationNodeMembersRequest struct { *tchttp.BaseRequest // Organizational unit ID NodeId *uint64 `json:"NodeId,omitempty" name:"NodeId"` // Offset Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Limit Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewListOrganizationNodeMembersRequest ¶
func NewListOrganizationNodeMembersRequest() (request *ListOrganizationNodeMembersRequest)
func (*ListOrganizationNodeMembersRequest) FromJsonString ¶
func (r *ListOrganizationNodeMembersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListOrganizationNodeMembersRequest) ToJsonString ¶
func (r *ListOrganizationNodeMembersRequest) ToJsonString() string
type ListOrganizationNodeMembersResponse ¶
type ListOrganizationNodeMembersResponse struct { *tchttp.BaseResponse Response *struct { // Total number of results TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Member list Members []*OrgMember `json:"Members,omitempty" name:"Members"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListOrganizationNodeMembersResponse ¶
func NewListOrganizationNodeMembersResponse() (response *ListOrganizationNodeMembersResponse)
func (*ListOrganizationNodeMembersResponse) FromJsonString ¶
func (r *ListOrganizationNodeMembersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListOrganizationNodeMembersResponse) ToJsonString ¶
func (r *ListOrganizationNodeMembersResponse) ToJsonString() string
type ListOrganizationNodesRequest ¶
type ListOrganizationNodesRequest struct {
*tchttp.BaseRequest
}
func NewListOrganizationNodesRequest ¶
func NewListOrganizationNodesRequest() (request *ListOrganizationNodesRequest)
func (*ListOrganizationNodesRequest) FromJsonString ¶
func (r *ListOrganizationNodesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListOrganizationNodesRequest) ToJsonString ¶
func (r *ListOrganizationNodesRequest) ToJsonString() string
type ListOrganizationNodesResponse ¶
type ListOrganizationNodesResponse struct { *tchttp.BaseResponse Response *struct { // Organizational unit list Nodes []*OrgNode `json:"Nodes,omitempty" name:"Nodes"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewListOrganizationNodesResponse ¶
func NewListOrganizationNodesResponse() (response *ListOrganizationNodesResponse)
func (*ListOrganizationNodesResponse) FromJsonString ¶
func (r *ListOrganizationNodesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListOrganizationNodesResponse) ToJsonString ¶
func (r *ListOrganizationNodesResponse) ToJsonString() string
type MoveOrganizationMembersToNodeRequest ¶
type MoveOrganizationMembersToNodeRequest struct { *tchttp.BaseRequest // Organizational unit ID NodeId *uint64 `json:"NodeId,omitempty" name:"NodeId"` // Member UIN list Uins []*uint64 `json:"Uins,omitempty" name:"Uins"` }
func NewMoveOrganizationMembersToNodeRequest ¶
func NewMoveOrganizationMembersToNodeRequest() (request *MoveOrganizationMembersToNodeRequest)
func (*MoveOrganizationMembersToNodeRequest) FromJsonString ¶
func (r *MoveOrganizationMembersToNodeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MoveOrganizationMembersToNodeRequest) ToJsonString ¶
func (r *MoveOrganizationMembersToNodeRequest) ToJsonString() string
type MoveOrganizationMembersToNodeResponse ¶
type MoveOrganizationMembersToNodeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewMoveOrganizationMembersToNodeResponse ¶
func NewMoveOrganizationMembersToNodeResponse() (response *MoveOrganizationMembersToNodeResponse)
func (*MoveOrganizationMembersToNodeResponse) FromJsonString ¶
func (r *MoveOrganizationMembersToNodeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MoveOrganizationMembersToNodeResponse) ToJsonString ¶
func (r *MoveOrganizationMembersToNodeResponse) ToJsonString() string
type OrgInvitation ¶
type OrgInvitation struct { // Invitation ID Id *uint64 `json:"Id,omitempty" name:"Id"` // UIN of the invitee Uin *uint64 `json:"Uin,omitempty" name:"Uin"` // Creator UIN HostUin *uint64 `json:"HostUin,omitempty" name:"HostUin"` // Creator's name HostName *string `json:"HostName,omitempty" name:"HostName"` // Creator's email address HostMail *string `json:"HostMail,omitempty" name:"HostMail"` // Invitation status. `-1`: expired; `0`: normal; `1`: accepted; `2`: invalid; `3`: cancelled Status *uint64 `json:"Status,omitempty" name:"Status"` // Name Name *string `json:"Name,omitempty" name:"Name"` // Notes Remark *string `json:"Remark,omitempty" name:"Remark"` // Organization type OrgType *uint64 `json:"OrgType,omitempty" name:"OrgType"` // Time of invitation InviteTime *string `json:"InviteTime,omitempty" name:"InviteTime"` // Expiration time ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` }
type OrgNode ¶
type OrgNode struct { // Organizational unit ID NodeId *uint64 `json:"NodeId,omitempty" name:"NodeId"` // Name Name *string `json:"Name,omitempty" name:"Name"` // Parent organizational unit ID ParentNodeId *uint64 `json:"ParentNodeId,omitempty" name:"ParentNodeId"` // Number of members MemberCount *uint64 `json:"MemberCount,omitempty" name:"MemberCount"` }
type QuitOrganizationRequest ¶
type QuitOrganizationRequest struct { *tchttp.BaseRequest // Organization ID OrgId *uint64 `json:"OrgId,omitempty" name:"OrgId"` }
func NewQuitOrganizationRequest ¶
func NewQuitOrganizationRequest() (request *QuitOrganizationRequest)
func (*QuitOrganizationRequest) FromJsonString ¶
func (r *QuitOrganizationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QuitOrganizationRequest) ToJsonString ¶
func (r *QuitOrganizationRequest) ToJsonString() string
type QuitOrganizationResponse ¶
type QuitOrganizationResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewQuitOrganizationResponse ¶
func NewQuitOrganizationResponse() (response *QuitOrganizationResponse)
func (*QuitOrganizationResponse) FromJsonString ¶
func (r *QuitOrganizationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QuitOrganizationResponse) ToJsonString ¶
func (r *QuitOrganizationResponse) ToJsonString() string
type SendOrganizationInvitationRequest ¶
type SendOrganizationInvitationRequest struct { *tchttp.BaseRequest // UIN of the invitee InviteUin *uint64 `json:"InviteUin,omitempty" name:"InviteUin"` // Name Name *string `json:"Name,omitempty" name:"Name"` // Notes Remark *string `json:"Remark,omitempty" name:"Remark"` }
func NewSendOrganizationInvitationRequest ¶
func NewSendOrganizationInvitationRequest() (request *SendOrganizationInvitationRequest)
func (*SendOrganizationInvitationRequest) FromJsonString ¶
func (r *SendOrganizationInvitationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SendOrganizationInvitationRequest) ToJsonString ¶
func (r *SendOrganizationInvitationRequest) ToJsonString() string
type SendOrganizationInvitationResponse ¶
type SendOrganizationInvitationResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSendOrganizationInvitationResponse ¶
func NewSendOrganizationInvitationResponse() (response *SendOrganizationInvitationResponse)
func (*SendOrganizationInvitationResponse) FromJsonString ¶
func (r *SendOrganizationInvitationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SendOrganizationInvitationResponse) ToJsonString ¶
func (r *SendOrganizationInvitationResponse) ToJsonString() string
type UpdateOrganizationMemberRequest ¶
type UpdateOrganizationMemberRequest struct { *tchttp.BaseRequest // Member UIN MemberUin *uint64 `json:"MemberUin,omitempty" name:"MemberUin"` // Name Name *string `json:"Name,omitempty" name:"Name"` // Notes Remark *string `json:"Remark,omitempty" name:"Remark"` }
func NewUpdateOrganizationMemberRequest ¶
func NewUpdateOrganizationMemberRequest() (request *UpdateOrganizationMemberRequest)
func (*UpdateOrganizationMemberRequest) FromJsonString ¶
func (r *UpdateOrganizationMemberRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateOrganizationMemberRequest) ToJsonString ¶
func (r *UpdateOrganizationMemberRequest) ToJsonString() string
type UpdateOrganizationMemberResponse ¶
type UpdateOrganizationMemberResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateOrganizationMemberResponse ¶
func NewUpdateOrganizationMemberResponse() (response *UpdateOrganizationMemberResponse)
func (*UpdateOrganizationMemberResponse) FromJsonString ¶
func (r *UpdateOrganizationMemberResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateOrganizationMemberResponse) ToJsonString ¶
func (r *UpdateOrganizationMemberResponse) ToJsonString() string
type UpdateOrganizationNodeRequest ¶
type UpdateOrganizationNodeRequest struct { *tchttp.BaseRequest // Organizational unit ID NodeId *uint64 `json:"NodeId,omitempty" name:"NodeId"` // Name Name *string `json:"Name,omitempty" name:"Name"` // Parent organizational unit ID ParentNodeId *uint64 `json:"ParentNodeId,omitempty" name:"ParentNodeId"` }
func NewUpdateOrganizationNodeRequest ¶
func NewUpdateOrganizationNodeRequest() (request *UpdateOrganizationNodeRequest)
func (*UpdateOrganizationNodeRequest) FromJsonString ¶
func (r *UpdateOrganizationNodeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateOrganizationNodeRequest) ToJsonString ¶
func (r *UpdateOrganizationNodeRequest) ToJsonString() string
type UpdateOrganizationNodeResponse ¶
type UpdateOrganizationNodeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateOrganizationNodeResponse ¶
func NewUpdateOrganizationNodeResponse() (response *UpdateOrganizationNodeResponse)
func (*UpdateOrganizationNodeResponse) FromJsonString ¶
func (r *UpdateOrganizationNodeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateOrganizationNodeResponse) ToJsonString ¶
func (r *UpdateOrganizationNodeResponse) ToJsonString() string