v20181225

package
v3.0.955+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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,omitnil,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 AcceptOrganizationInvitationRequestParams

type AcceptOrganizationInvitationRequestParams struct {
	// Invitation ID
	Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
}

Predefined struct for user

type AcceptOrganizationInvitationResponse

type AcceptOrganizationInvitationResponse struct {
	*tchttp.BaseResponse
	Response *AcceptOrganizationInvitationResponseParams `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 AcceptOrganizationInvitationResponseParams

type AcceptOrganizationInvitationResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type AddOrganizationNodeRequest

type AddOrganizationNodeRequest struct {
	*tchttp.BaseRequest

	// Parent organizational unit ID
	ParentNodeId *uint64 `json:"ParentNodeId,omitnil,omitempty" name:"ParentNodeId"`

	// Organizational unit name
	Name *string `json:"Name,omitnil,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 AddOrganizationNodeRequestParams

type AddOrganizationNodeRequestParams struct {
	// Parent organizational unit ID
	ParentNodeId *uint64 `json:"ParentNodeId,omitnil,omitempty" name:"ParentNodeId"`

	// Organizational unit name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`
}

Predefined struct for user

type AddOrganizationNodeResponse

type AddOrganizationNodeResponse struct {
	*tchttp.BaseResponse
	Response *AddOrganizationNodeResponseParams `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 AddOrganizationNodeResponseParams

type AddOrganizationNodeResponseParams struct {
	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CancelOrganizationInvitationRequest

type CancelOrganizationInvitationRequest struct {
	*tchttp.BaseRequest

	// Invitation ID
	Id *uint64 `json:"Id,omitnil,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 CancelOrganizationInvitationRequestParams

type CancelOrganizationInvitationRequestParams struct {
	// Invitation ID
	Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
}

Predefined struct for user

type CancelOrganizationInvitationResponse

type CancelOrganizationInvitationResponse struct {
	*tchttp.BaseResponse
	Response *CancelOrganizationInvitationResponseParams `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 CancelOrganizationInvitationResponseParams

type CancelOrganizationInvitationResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

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,omitnil,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 CreateOrganizationRequestParams

type CreateOrganizationRequestParams struct {
	// Organization type; currently its value is fixed as `1`
	OrgType *uint64 `json:"OrgType,omitnil,omitempty" name:"OrgType"`
}

Predefined struct for user

type CreateOrganizationResponse

type CreateOrganizationResponse struct {
	*tchttp.BaseResponse
	Response *CreateOrganizationResponseParams `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 CreateOrganizationResponseParams

type CreateOrganizationResponseParams struct {
	// Organization ID
	OrgId *uint64 `json:"OrgId,omitnil,omitempty" name:"OrgId"`

	// Creator's name
	Nickname *string `json:"Nickname,omitnil,omitempty" name:"Nickname"`

	// Creator's email address
	Mail *string `json:"Mail,omitnil,omitempty" name:"Mail"`

	// Organization type
	OrgType *uint64 `json:"OrgType,omitnil,omitempty" name:"OrgType"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteOrganizationMemberFromNodeRequest

type DeleteOrganizationMemberFromNodeRequest struct {
	*tchttp.BaseRequest

	// UIN of the member to be deleted
	MemberUin *uint64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`

	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`
}

func NewDeleteOrganizationMemberFromNodeRequest

func NewDeleteOrganizationMemberFromNodeRequest() (request *DeleteOrganizationMemberFromNodeRequest)

func (*DeleteOrganizationMemberFromNodeRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteOrganizationMemberFromNodeRequest) ToJsonString

type DeleteOrganizationMemberFromNodeRequestParams

type DeleteOrganizationMemberFromNodeRequestParams struct {
	// UIN of the member to be deleted
	MemberUin *uint64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`

	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`
}

Predefined struct for user

type DeleteOrganizationMemberFromNodeResponse

type DeleteOrganizationMemberFromNodeResponse struct {
	*tchttp.BaseResponse
	Response *DeleteOrganizationMemberFromNodeResponseParams `json:"Response"`
}

func NewDeleteOrganizationMemberFromNodeResponse

func NewDeleteOrganizationMemberFromNodeResponse() (response *DeleteOrganizationMemberFromNodeResponse)

func (*DeleteOrganizationMemberFromNodeResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteOrganizationMemberFromNodeResponse) ToJsonString

type DeleteOrganizationMemberFromNodeResponseParams

type DeleteOrganizationMemberFromNodeResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteOrganizationMembersRequest

type DeleteOrganizationMembersRequest struct {
	*tchttp.BaseRequest

	// List of UINs of members to be deleted
	Uins []*uint64 `json:"Uins,omitnil,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 DeleteOrganizationMembersRequestParams

type DeleteOrganizationMembersRequestParams struct {
	// List of UINs of members to be deleted
	Uins []*uint64 `json:"Uins,omitnil,omitempty" name:"Uins"`
}

Predefined struct for user

type DeleteOrganizationMembersResponse

type DeleteOrganizationMembersResponse struct {
	*tchttp.BaseResponse
	Response *DeleteOrganizationMembersResponseParams `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 DeleteOrganizationMembersResponseParams

type DeleteOrganizationMembersResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteOrganizationNodesRequest

type DeleteOrganizationNodesRequest struct {
	*tchttp.BaseRequest

	// Organizational unit ID list
	NodeIds []*uint64 `json:"NodeIds,omitnil,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 DeleteOrganizationNodesRequestParams

type DeleteOrganizationNodesRequestParams struct {
	// Organizational unit ID list
	NodeIds []*uint64 `json:"NodeIds,omitnil,omitempty" name:"NodeIds"`
}

Predefined struct for user

type DeleteOrganizationNodesResponse

type DeleteOrganizationNodesResponse struct {
	*tchttp.BaseResponse
	Response *DeleteOrganizationNodesResponseParams `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 DeleteOrganizationNodesResponseParams

type DeleteOrganizationNodesResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

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 DeleteOrganizationRequestParams

type DeleteOrganizationRequestParams struct {
}

Predefined struct for user

type DeleteOrganizationResponse

type DeleteOrganizationResponse struct {
	*tchttp.BaseResponse
	Response *DeleteOrganizationResponseParams `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 DeleteOrganizationResponseParams

type DeleteOrganizationResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DenyOrganizationInvitationRequest

type DenyOrganizationInvitationRequest struct {
	*tchttp.BaseRequest

	// Invitation ID
	Id *uint64 `json:"Id,omitnil,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 DenyOrganizationInvitationRequestParams

type DenyOrganizationInvitationRequestParams struct {
	// Invitation ID
	Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
}

Predefined struct for user

type DenyOrganizationInvitationResponse

type DenyOrganizationInvitationResponse struct {
	*tchttp.BaseResponse
	Response *DenyOrganizationInvitationResponseParams `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 DenyOrganizationInvitationResponseParams

type DenyOrganizationInvitationResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetOrganizationMemberRequest

type GetOrganizationMemberRequest struct {
	*tchttp.BaseRequest

	// Organization member UIN
	MemberUin *uint64 `json:"MemberUin,omitnil,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 GetOrganizationMemberRequestParams

type GetOrganizationMemberRequestParams struct {
	// Organization member UIN
	MemberUin *uint64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`
}

Predefined struct for user

type GetOrganizationMemberResponse

type GetOrganizationMemberResponse struct {
	*tchttp.BaseResponse
	Response *GetOrganizationMemberResponseParams `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 GetOrganizationMemberResponseParams

type GetOrganizationMemberResponseParams struct {
	// Organization member UIN
	Uin *uint64 `json:"Uin,omitnil,omitempty" name:"Uin"`

	// Organization member name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Notes
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// Joining time
	JoinTime *string `json:"JoinTime,omitnil,omitempty" name:"JoinTime"`

	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`

	// Organizational unit name
	NodeName *string `json:"NodeName,omitnil,omitempty" name:"NodeName"`

	// Parent organizational unit ID
	ParentNodeId *uint64 `json:"ParentNodeId,omitnil,omitempty" name:"ParentNodeId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

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 GetOrganizationRequestParams

type GetOrganizationRequestParams struct {
}

Predefined struct for user

type GetOrganizationResponse

type GetOrganizationResponse struct {
	*tchttp.BaseResponse
	Response *GetOrganizationResponseParams `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 GetOrganizationResponseParams

type GetOrganizationResponseParams struct {
	// Organization ID
	OrgId *uint64 `json:"OrgId,omitnil,omitempty" name:"OrgId"`

	// Creator UIN
	HostUin *uint64 `json:"HostUin,omitnil,omitempty" name:"HostUin"`

	// Creator's name
	Nickname *string `json:"Nickname,omitnil,omitempty" name:"Nickname"`

	// Creator's email address
	Mail *string `json:"Mail,omitnil,omitempty" name:"Mail"`

	// Organization type
	OrgType *uint64 `json:"OrgType,omitnil,omitempty" name:"OrgType"`

	// Whether the organization is empty or not
	IsEmpty *uint64 `json:"IsEmpty,omitnil,omitempty" name:"IsEmpty"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

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,omitnil,omitempty" name:"Invited"`

	// Offset
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Limit
	Limit *uint64 `json:"Limit,omitnil,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 ListOrganizationInvitationsRequestParams

type ListOrganizationInvitationsRequestParams struct {
	// 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,omitnil,omitempty" name:"Invited"`

	// Offset
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Limit
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}

Predefined struct for user

type ListOrganizationInvitationsResponse

type ListOrganizationInvitationsResponse struct {
	*tchttp.BaseResponse
	Response *ListOrganizationInvitationsResponseParams `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 ListOrganizationInvitationsResponseParams

type ListOrganizationInvitationsResponseParams struct {
	// List of invitations
	Invitations []*OrgInvitation `json:"Invitations,omitnil,omitempty" name:"Invitations"`

	// Total number of results
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListOrganizationMembersRequest

type ListOrganizationMembersRequest struct {
	*tchttp.BaseRequest

	// Offset
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Limit
	Limit *uint64 `json:"Limit,omitnil,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 ListOrganizationMembersRequestParams

type ListOrganizationMembersRequestParams struct {
	// Offset
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Limit
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}

Predefined struct for user

type ListOrganizationMembersResponse

type ListOrganizationMembersResponse struct {
	*tchttp.BaseResponse
	Response *ListOrganizationMembersResponseParams `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 ListOrganizationMembersResponseParams

type ListOrganizationMembersResponseParams struct {
	// Member list
	Members []*OrgMember `json:"Members,omitnil,omitempty" name:"Members"`

	// Total number of results
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListOrganizationNodeMembersRequest

type ListOrganizationNodeMembersRequest struct {
	*tchttp.BaseRequest

	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`

	// Offset
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Limit
	Limit *uint64 `json:"Limit,omitnil,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 ListOrganizationNodeMembersRequestParams

type ListOrganizationNodeMembersRequestParams struct {
	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`

	// Offset
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Limit
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}

Predefined struct for user

type ListOrganizationNodeMembersResponse

type ListOrganizationNodeMembersResponse struct {
	*tchttp.BaseResponse
	Response *ListOrganizationNodeMembersResponseParams `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 ListOrganizationNodeMembersResponseParams

type ListOrganizationNodeMembersResponseParams struct {
	// Total number of results
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Member list
	Members []*OrgMember `json:"Members,omitnil,omitempty" name:"Members"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

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 ListOrganizationNodesRequestParams

type ListOrganizationNodesRequestParams struct {
}

Predefined struct for user

type ListOrganizationNodesResponse

type ListOrganizationNodesResponse struct {
	*tchttp.BaseResponse
	Response *ListOrganizationNodesResponseParams `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 ListOrganizationNodesResponseParams

type ListOrganizationNodesResponseParams struct {
	// Organizational unit list
	Nodes []*OrgNode `json:"Nodes,omitnil,omitempty" name:"Nodes"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type MoveOrganizationMembersToNodeRequest

type MoveOrganizationMembersToNodeRequest struct {
	*tchttp.BaseRequest

	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`

	// Member UIN list
	Uins []*uint64 `json:"Uins,omitnil,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 MoveOrganizationMembersToNodeRequestParams

type MoveOrganizationMembersToNodeRequestParams struct {
	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`

	// Member UIN list
	Uins []*uint64 `json:"Uins,omitnil,omitempty" name:"Uins"`
}

Predefined struct for user

type MoveOrganizationMembersToNodeResponse

type MoveOrganizationMembersToNodeResponse struct {
	*tchttp.BaseResponse
	Response *MoveOrganizationMembersToNodeResponseParams `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

type MoveOrganizationMembersToNodeResponseParams

type MoveOrganizationMembersToNodeResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type OrgInvitation

type OrgInvitation struct {
	// Invitation ID
	Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`

	// UIN of the invitee
	Uin *uint64 `json:"Uin,omitnil,omitempty" name:"Uin"`

	// Creator UIN
	HostUin *uint64 `json:"HostUin,omitnil,omitempty" name:"HostUin"`

	// Creator's name
	HostName *string `json:"HostName,omitnil,omitempty" name:"HostName"`

	// Creator's email address
	HostMail *string `json:"HostMail,omitnil,omitempty" name:"HostMail"`

	// Invitation status. `-1`: expired; `0`: normal; `1`: accepted; `2`: invalid; `3`: cancelled
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`

	// Name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Notes
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// Organization type
	OrgType *uint64 `json:"OrgType,omitnil,omitempty" name:"OrgType"`

	// Time of invitation
	InviteTime *string `json:"InviteTime,omitnil,omitempty" name:"InviteTime"`

	// Expiration time
	ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
}

type OrgMember

type OrgMember struct {
	// UIN
	Uin *uint64 `json:"Uin,omitnil,omitempty" name:"Uin"`

	// Name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Notes
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// Joining time
	JoinTime *string `json:"JoinTime,omitnil,omitempty" name:"JoinTime"`
}

type OrgNode

type OrgNode struct {
	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`

	// Name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Parent organizational unit ID
	ParentNodeId *uint64 `json:"ParentNodeId,omitnil,omitempty" name:"ParentNodeId"`

	// Number of members
	MemberCount *uint64 `json:"MemberCount,omitnil,omitempty" name:"MemberCount"`
}

type QuitOrganizationRequest

type QuitOrganizationRequest struct {
	*tchttp.BaseRequest

	// Organization ID
	OrgId *uint64 `json:"OrgId,omitnil,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 QuitOrganizationRequestParams

type QuitOrganizationRequestParams struct {
	// Organization ID
	OrgId *uint64 `json:"OrgId,omitnil,omitempty" name:"OrgId"`
}

Predefined struct for user

type QuitOrganizationResponse

type QuitOrganizationResponse struct {
	*tchttp.BaseResponse
	Response *QuitOrganizationResponseParams `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 QuitOrganizationResponseParams

type QuitOrganizationResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type SendOrganizationInvitationRequest

type SendOrganizationInvitationRequest struct {
	*tchttp.BaseRequest

	// UIN of the invitee
	InviteUin *uint64 `json:"InviteUin,omitnil,omitempty" name:"InviteUin"`

	// Name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Notes
	Remark *string `json:"Remark,omitnil,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 SendOrganizationInvitationRequestParams

type SendOrganizationInvitationRequestParams struct {
	// UIN of the invitee
	InviteUin *uint64 `json:"InviteUin,omitnil,omitempty" name:"InviteUin"`

	// Name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Notes
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`
}

Predefined struct for user

type SendOrganizationInvitationResponse

type SendOrganizationInvitationResponse struct {
	*tchttp.BaseResponse
	Response *SendOrganizationInvitationResponseParams `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 SendOrganizationInvitationResponseParams

type SendOrganizationInvitationResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type UpdateOrganizationMemberRequest

type UpdateOrganizationMemberRequest struct {
	*tchttp.BaseRequest

	// Member UIN
	MemberUin *uint64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`

	// Name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Notes
	Remark *string `json:"Remark,omitnil,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 UpdateOrganizationMemberRequestParams

type UpdateOrganizationMemberRequestParams struct {
	// Member UIN
	MemberUin *uint64 `json:"MemberUin,omitnil,omitempty" name:"MemberUin"`

	// Name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Notes
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`
}

Predefined struct for user

type UpdateOrganizationMemberResponse

type UpdateOrganizationMemberResponse struct {
	*tchttp.BaseResponse
	Response *UpdateOrganizationMemberResponseParams `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 UpdateOrganizationMemberResponseParams

type UpdateOrganizationMemberResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type UpdateOrganizationNodeRequest

type UpdateOrganizationNodeRequest struct {
	*tchttp.BaseRequest

	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`

	// Name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Parent organizational unit ID
	ParentNodeId *uint64 `json:"ParentNodeId,omitnil,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 UpdateOrganizationNodeRequestParams

type UpdateOrganizationNodeRequestParams struct {
	// Organizational unit ID
	NodeId *uint64 `json:"NodeId,omitnil,omitempty" name:"NodeId"`

	// Name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Parent organizational unit ID
	ParentNodeId *uint64 `json:"ParentNodeId,omitnil,omitempty" name:"ParentNodeId"`
}

Predefined struct for user

type UpdateOrganizationNodeResponse

type UpdateOrganizationNodeResponse struct {
	*tchttp.BaseResponse
	Response *UpdateOrganizationNodeResponseParams `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

type UpdateOrganizationNodeResponseParams

type UpdateOrganizationNodeResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL