v2

package
v0.0.64 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForCheckHosts

func GenReqDefForCheckHosts() *def.HttpRequestDef

func GenReqDefForCheckNeedVerify

func GenReqDefForCheckNeedVerify() *def.HttpRequestDef

func GenReqDefForCheckVerifyCodes

func GenReqDefForCheckVerifyCodes() *def.HttpRequestDef

func GenReqDefForConfirmAuthorizations

func GenReqDefForConfirmAuthorizations() *def.HttpRequestDef

func GenReqDefForCreateCaseLabels

func GenReqDefForCreateCaseLabels() *def.HttpRequestDef

func GenReqDefForCreateCases

func GenReqDefForCreateCases() *def.HttpRequestDef

func GenReqDefForCreateLabels

func GenReqDefForCreateLabels() *def.HttpRequestDef

func GenReqDefForCreateMessages

func GenReqDefForCreateMessages() *def.HttpRequestDef

func GenReqDefForCreatePrivileges

func GenReqDefForCreatePrivileges() *def.HttpRequestDef

func GenReqDefForCreateRelations

func GenReqDefForCreateRelations() *def.HttpRequestDef

func GenReqDefForCreateScores

func GenReqDefForCreateScores() *def.HttpRequestDef

func GenReqDefForDeleteAccessories

func GenReqDefForDeleteAccessories() *def.HttpRequestDef

func GenReqDefForDeleteCaseLabels

func GenReqDefForDeleteCaseLabels() *def.HttpRequestDef

func GenReqDefForDeleteLabels

func GenReqDefForDeleteLabels() *def.HttpRequestDef

func GenReqDefForDeleteRelation

func GenReqDefForDeleteRelation() *def.HttpRequestDef

func GenReqDefForDownloadAccessories

func GenReqDefForDownloadAccessories() *def.HttpRequestDef

func GenReqDefForDownloadCases

func GenReqDefForDownloadCases() *def.HttpRequestDef

func GenReqDefForDownloadImages

func GenReqDefForDownloadImages() *def.HttpRequestDef

func GenReqDefForListAgencies

func GenReqDefForListAgencies() *def.HttpRequestDef

func GenReqDefForListAreaCodes

func GenReqDefForListAreaCodes() *def.HttpRequestDef

func GenReqDefForListAuthorizations

func GenReqDefForListAuthorizations() *def.HttpRequestDef

func GenReqDefForListCaseCategories

func GenReqDefForListCaseCategories() *def.HttpRequestDef

func GenReqDefForListCaseCcEmails

func GenReqDefForListCaseCcEmails() *def.HttpRequestDef

func GenReqDefForListCaseCounts

func GenReqDefForListCaseCounts() *def.HttpRequestDef

func GenReqDefForListCaseLabels

func GenReqDefForListCaseLabels() *def.HttpRequestDef

func GenReqDefForListCaseLimits

func GenReqDefForListCaseLimits() *def.HttpRequestDef

func GenReqDefForListCaseOperateLogs

func GenReqDefForListCaseOperateLogs() *def.HttpRequestDef

func GenReqDefForListCaseQuotas

func GenReqDefForListCaseQuotas() *def.HttpRequestDef

func GenReqDefForListCaseTemplates

func GenReqDefForListCaseTemplates() *def.HttpRequestDef

func GenReqDefForListCases

func GenReqDefForListCases() *def.HttpRequestDef

func GenReqDefForListExtendsParams

func GenReqDefForListExtendsParams() *def.HttpRequestDef

func GenReqDefForListHasVerifiedContacts

func GenReqDefForListHasVerifiedContacts() *def.HttpRequestDef

func GenReqDefForListHistoryOperateLogs

func GenReqDefForListHistoryOperateLogs() *def.HttpRequestDef

func GenReqDefForListHistorySessions

func GenReqDefForListHistorySessions() *def.HttpRequestDef

func GenReqDefForListLabels

func GenReqDefForListLabels() *def.HttpRequestDef

func GenReqDefForListMessages

func GenReqDefForListMessages() *def.HttpRequestDef

func GenReqDefForListMoreInstantMessages

func GenReqDefForListMoreInstantMessages() *def.HttpRequestDef

func GenReqDefForListNewInstantMessages

func GenReqDefForListNewInstantMessages() *def.HttpRequestDef

func GenReqDefForListPrivileges

func GenReqDefForListPrivileges() *def.HttpRequestDef

func GenReqDefForListProblemTypes

func GenReqDefForListProblemTypes() *def.HttpRequestDef

func GenReqDefForListProductCategories

func GenReqDefForListProductCategories() *def.HttpRequestDef

func GenReqDefForListRegions

func GenReqDefForListRegions() *def.HttpRequestDef

func GenReqDefForListRelation

func GenReqDefForListRelation() *def.HttpRequestDef

func GenReqDefForListSatisfactionDimensions

func GenReqDefForListSatisfactionDimensions() *def.HttpRequestDef

func GenReqDefForListSeverities

func GenReqDefForListSeverities() *def.HttpRequestDef

func GenReqDefForListSubCustomers

func GenReqDefForListSubCustomers() *def.HttpRequestDef

func GenReqDefForListTransportHistories

func GenReqDefForListTransportHistories() *def.HttpRequestDef

func GenReqDefForListUnreadNewInstantMessages

func GenReqDefForListUnreadNewInstantMessages() *def.HttpRequestDef

func GenReqDefForSendVerifyCodes

func GenReqDefForSendVerifyCodes() *def.HttpRequestDef

func GenReqDefForShowAccessoryLimits

func GenReqDefForShowAccessoryLimits() *def.HttpRequestDef

func GenReqDefForShowAuthorizationDetail

func GenReqDefForShowAuthorizationDetail() *def.HttpRequestDef

func GenReqDefForShowCaseDetail

func GenReqDefForShowCaseDetail() *def.HttpRequestDef

func GenReqDefForShowCaseStatus

func GenReqDefForShowCaseStatus() *def.HttpRequestDef

func GenReqDefForShowPartnersCasesPrivilege

func GenReqDefForShowPartnersCasesPrivilege() *def.HttpRequestDef

func GenReqDefForShowPartnersServiceInfo

func GenReqDefForShowPartnersServiceInfo() *def.HttpRequestDef

func GenReqDefForUpdateAuthorizations

func GenReqDefForUpdateAuthorizations() *def.HttpRequestDef

func GenReqDefForUpdateCases

func GenReqDefForUpdateCases() *def.HttpRequestDef

func GenReqDefForUpdateLabels

func GenReqDefForUpdateLabels() *def.HttpRequestDef

func GenReqDefForUpdateNewInstantMessagesRead

func GenReqDefForUpdateNewInstantMessagesRead() *def.HttpRequestDef

func GenReqDefForUploadJsonAccessories

func GenReqDefForUploadJsonAccessories() *def.HttpRequestDef

func OsmClientBuilder

func OsmClientBuilder() *http_client.HcHttpClientBuilder

Types

type OsmClient

type OsmClient struct {
	HcClient *http_client.HcHttpClient
}

func NewOsmClient

func NewOsmClient(hcClient *http_client.HcHttpClient) *OsmClient

func (*OsmClient) CheckHosts

func (c *OsmClient) CheckHosts(request *model.CheckHostsRequest) (*model.CheckHostsResponse, error)

验证授权主机密码是否正确

func (*OsmClient) CheckNeedVerify

func (c *OsmClient) CheckNeedVerify(request *model.CheckNeedVerifyRequest) (*model.CheckNeedVerifyResponse, error)

是否需要验证

func (*OsmClient) CheckVerifyCodes

func (c *OsmClient) CheckVerifyCodes(request *model.CheckVerifyCodesRequest) (*model.CheckVerifyCodesResponse, error)

验证联系方式

func (*OsmClient) ConfirmAuthorizations

租户确认授权

func (*OsmClient) CreateCaseLabels

func (c *OsmClient) CreateCaseLabels(request *model.CreateCaseLabelsRequest) (*model.CreateCaseLabelsResponse, error)

添加工单关联标签接口

func (*OsmClient) CreateCases

func (c *OsmClient) CreateCases(request *model.CreateCasesRequest) (*model.CreateCasesResponse, error)

创建工单

func (*OsmClient) CreateLabels

func (c *OsmClient) CreateLabels(request *model.CreateLabelsRequest) (*model.CreateLabelsResponse, error)

创建标签

func (*OsmClient) CreateMessages

func (c *OsmClient) CreateMessages(request *model.CreateMessagesRequest) (*model.CreateMessagesResponse, error)

提交留言

func (*OsmClient) CreatePrivileges

func (c *OsmClient) CreatePrivileges(request *model.CreatePrivilegesRequest) (*model.CreatePrivilegesResponse, error)

创建授权

func (*OsmClient) CreateRelations

func (c *OsmClient) CreateRelations(request *model.CreateRelationsRequest) (*model.CreateRelationsResponse, error)

创建关联,一个工单最多支持3个关联

func (*OsmClient) CreateScores

func (c *OsmClient) CreateScores(request *model.CreateScoresRequest) (*model.CreateScoresResponse, error)

提交评分

func (*OsmClient) DeleteAccessories

func (c *OsmClient) DeleteAccessories(request *model.DeleteAccessoriesRequest) (*model.DeleteAccessoriesResponse, error)

删除附件

func (*OsmClient) DeleteCaseLabels

func (c *OsmClient) DeleteCaseLabels(request *model.DeleteCaseLabelsRequest) (*model.DeleteCaseLabelsResponse, error)

删除指定工单关联标签接口

func (*OsmClient) DeleteLabels

func (c *OsmClient) DeleteLabels(request *model.DeleteLabelsRequest) (*model.DeleteLabelsResponse, error)

删除标签,同时会删除工单与标签关联关系

func (*OsmClient) DeleteRelation

func (c *OsmClient) DeleteRelation(request *model.DeleteRelationRequest) (*model.DeleteRelationResponse, error)

删除关联

func (*OsmClient) DownloadAccessories

下载附件

func (*OsmClient) DownloadCases

func (c *OsmClient) DownloadCases(request *model.DownloadCasesRequest) (*model.DownloadCasesResponse, error)

工单导出

func (*OsmClient) DownloadImages

func (c *OsmClient) DownloadImages(request *model.DownloadImagesRequest) (*model.DownloadImagesResponse, error)

返回图片内容,用于页面直接展示

func (*OsmClient) ListAgencies

func (c *OsmClient) ListAgencies(request *model.ListAgenciesRequest) (*model.ListAgenciesResponse, error)

查询委托

func (*OsmClient) ListAreaCodes

func (c *OsmClient) ListAreaCodes(request *model.ListAreaCodesRequest) (*model.ListAreaCodesResponse, error)

查询国家码,用于提交工单页面填写联系方式使用

func (*OsmClient) ListAuthorizations

func (c *OsmClient) ListAuthorizations(request *model.ListAuthorizationsRequest) (*model.ListAuthorizationsResponse, error)

查询授权列表

func (*OsmClient) ListCaseCategories

func (c *OsmClient) ListCaseCategories(request *model.ListCaseCategoriesRequest) (*model.ListCaseCategoriesResponse, error)

查询工单类目列表

func (*OsmClient) ListCaseCcEmails

func (c *OsmClient) ListCaseCcEmails(request *model.ListCaseCcEmailsRequest) (*model.ListCaseCcEmailsResponse, error)

查询工单抄送邮箱

func (*OsmClient) ListCaseCounts

func (c *OsmClient) ListCaseCounts(request *model.ListCaseCountsRequest) (*model.ListCaseCountsResponse, error)

统计各状态工单数量

func (*OsmClient) ListCaseLabels

func (c *OsmClient) ListCaseLabels(request *model.ListCaseLabelsRequest) (*model.ListCaseLabelsResponse, error)

查询工单关联标签接口

func (*OsmClient) ListCaseLimits

func (c *OsmClient) ListCaseLimits(request *model.ListCaseLimitsRequest) (*model.ListCaseLimitsResponse, error)

查询工单限制,比如抄送邮箱个数等

func (*OsmClient) ListCaseOperateLogs

查询工单操作日志

func (*OsmClient) ListCaseQuotas

func (c *OsmClient) ListCaseQuotas(request *model.ListCaseQuotasRequest) (*model.ListCaseQuotasResponse, error)

查询工单配额

func (*OsmClient) ListCaseTemplates

func (c *OsmClient) ListCaseTemplates(request *model.ListCaseTemplatesRequest) (*model.ListCaseTemplatesResponse, error)

查询问题类型对应模板

func (*OsmClient) ListCases

func (c *OsmClient) ListCases(request *model.ListCasesRequest) (*model.ListCasesResponse, error)

查询工单列表接口

func (*OsmClient) ListExtendsParams

func (c *OsmClient) ListExtendsParams(request *model.ListExtendsParamsRequest) (*model.ListExtendsParamsResponse, error)

提单时,根据不同的产品或者问题类型,会存在不同的一些附加参数填写

func (*OsmClient) ListHasVerifiedContacts

查询已验证的列表

func (*OsmClient) ListHistoryOperateLogs

查询堡垒机历史操作记录

func (*OsmClient) ListHistorySessions

查询堡垒机历史会话列

func (*OsmClient) ListLabels

func (c *OsmClient) ListLabels(request *model.ListLabelsRequest) (*model.ListLabelsResponse, error)

查询标签

func (*OsmClient) ListMessages

func (c *OsmClient) ListMessages(request *model.ListMessagesRequest) (*model.ListMessagesResponse, error)

查询留言

func (*OsmClient) ListMoreInstantMessages

查询更多留言

func (*OsmClient) ListNewInstantMessages

轮询查询即时消息接口

func (*OsmClient) ListPrivileges

func (c *OsmClient) ListPrivileges(request *model.ListPrivilegesRequest) (*model.ListPrivilegesResponse, error)

查询工单权限

func (*OsmClient) ListProblemTypes

func (c *OsmClient) ListProblemTypes(request *model.ListProblemTypesRequest) (*model.ListProblemTypesResponse, error)

提交工单时,选择产品类型之后选择对应的问题列表

func (*OsmClient) ListProductCategories

查询产品类型列表

func (*OsmClient) ListRegions

func (c *OsmClient) ListRegions(request *model.ListRegionsRequest) (*model.ListRegionsResponse, error)

查询区域列表

func (*OsmClient) ListRelation

func (c *OsmClient) ListRelation(request *model.ListRelationRequest) (*model.ListRelationResponse, error)

查询工单的关联,返回关联工单的简要信息

func (*OsmClient) ListSatisfactionDimensions

工单满意度分类列表

func (*OsmClient) ListSeverities

func (c *OsmClient) ListSeverities(request *model.ListSeveritiesRequest) (*model.ListSeveritiesResponse, error)

查询问题严重性列表

func (*OsmClient) ListSubCustomers

func (c *OsmClient) ListSubCustomers(request *model.ListSubCustomersRequest) (*model.ListSubCustomersResponse, error)

查询子用户信息

func (*OsmClient) ListTransportHistories

查询堡垒机文件传输记录

func (*OsmClient) ListUnreadNewInstantMessages

查询未读消息

func (*OsmClient) SendVerifyCodes

func (c *OsmClient) SendVerifyCodes(request *model.SendVerifyCodesRequest) (*model.SendVerifyCodesResponse, error)

获取验证码

func (*OsmClient) ShowAccessoryLimits

查询附件的一下限制,比如大小,数量,文件类型

func (*OsmClient) ShowAuthorizationDetail

查询授权详情

func (*OsmClient) ShowCaseDetail

func (c *OsmClient) ShowCaseDetail(request *model.ShowCaseDetailRequest) (*model.ShowCaseDetailResponse, error)

查询工单详情

func (*OsmClient) ShowCaseStatus

func (c *OsmClient) ShowCaseStatus(request *model.ShowCaseStatusRequest) (*model.ShowCaseStatusResponse, error)

查询某个工单状态

func (*OsmClient) ShowPartnersCasesPrivilege

查询伙伴工单权限

func (*OsmClient) ShowPartnersServiceInfo

查询关联伙伴服务信息

func (*OsmClient) UpdateAuthorizations

拒绝|撤销授权

func (*OsmClient) UpdateCases

func (c *OsmClient) UpdateCases(request *model.UpdateCasesRequest) (*model.UpdateCasesResponse, error)

工单操作

func (*OsmClient) UpdateLabels

func (c *OsmClient) UpdateLabels(request *model.UpdateLabelsRequest) (*model.UpdateLabelsResponse, error)

修改标签

func (*OsmClient) UpdateNewInstantMessagesRead

设置消息已读

func (*OsmClient) UploadJsonAccessories

上传附件给SDK使用

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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