workorder

package
v1.63.53 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "central"

EndpointType regional or central

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) CloseTicket

func (client *Client) CloseTicket(request *CloseTicketRequest) (response *CloseTicketResponse, err error)

CloseTicket invokes the workorder.CloseTicket API synchronously

func (*Client) CloseTicketWithCallback

func (client *Client) CloseTicketWithCallback(request *CloseTicketRequest, callback func(response *CloseTicketResponse, err error)) <-chan int

CloseTicketWithCallback invokes the workorder.CloseTicket API asynchronously

func (*Client) CloseTicketWithChan

func (client *Client) CloseTicketWithChan(request *CloseTicketRequest) (<-chan *CloseTicketResponse, <-chan error)

CloseTicketWithChan invokes the workorder.CloseTicket API asynchronously

func (*Client) CreateTicket

func (client *Client) CreateTicket(request *CreateTicketRequest) (response *CreateTicketResponse, err error)

CreateTicket invokes the workorder.CreateTicket API synchronously

func (*Client) CreateTicketWithCallback

func (client *Client) CreateTicketWithCallback(request *CreateTicketRequest, callback func(response *CreateTicketResponse, err error)) <-chan int

CreateTicketWithCallback invokes the workorder.CreateTicket API asynchronously

func (*Client) CreateTicketWithChan

func (client *Client) CreateTicketWithChan(request *CreateTicketRequest) (<-chan *CreateTicketResponse, <-chan error)

CreateTicketWithChan invokes the workorder.CreateTicket API asynchronously

func (*Client) GetMqConsumerTag added in v1.61.1130

func (client *Client) GetMqConsumerTag(request *GetMqConsumerTagRequest) (response *GetMqConsumerTagResponse, err error)

GetMqConsumerTag invokes the workorder.GetMqConsumerTag API synchronously

func (*Client) GetMqConsumerTagWithCallback added in v1.61.1130

func (client *Client) GetMqConsumerTagWithCallback(request *GetMqConsumerTagRequest, callback func(response *GetMqConsumerTagResponse, err error)) <-chan int

GetMqConsumerTagWithCallback invokes the workorder.GetMqConsumerTag API asynchronously

func (*Client) GetMqConsumerTagWithChan added in v1.61.1130

func (client *Client) GetMqConsumerTagWithChan(request *GetMqConsumerTagRequest) (<-chan *GetMqConsumerTagResponse, <-chan error)

GetMqConsumerTagWithChan invokes the workorder.GetMqConsumerTag API asynchronously

func (*Client) ListCategories

func (client *Client) ListCategories(request *ListCategoriesRequest) (response *ListCategoriesResponse, err error)

ListCategories invokes the workorder.ListCategories API synchronously

func (*Client) ListCategoriesWithCallback

func (client *Client) ListCategoriesWithCallback(request *ListCategoriesRequest, callback func(response *ListCategoriesResponse, err error)) <-chan int

ListCategoriesWithCallback invokes the workorder.ListCategories API asynchronously

func (*Client) ListCategoriesWithChan

func (client *Client) ListCategoriesWithChan(request *ListCategoriesRequest) (<-chan *ListCategoriesResponse, <-chan error)

ListCategoriesWithChan invokes the workorder.ListCategories API asynchronously

func (*Client) ListProducts

func (client *Client) ListProducts(request *ListProductsRequest) (response *ListProductsResponse, err error)

ListProducts invokes the workorder.ListProducts API synchronously

func (*Client) ListProductsWithCallback

func (client *Client) ListProductsWithCallback(request *ListProductsRequest, callback func(response *ListProductsResponse, err error)) <-chan int

ListProductsWithCallback invokes the workorder.ListProducts API asynchronously

func (*Client) ListProductsWithChan

func (client *Client) ListProductsWithChan(request *ListProductsRequest) (<-chan *ListProductsResponse, <-chan error)

ListProductsWithChan invokes the workorder.ListProducts API asynchronously

func (*Client) ListTicketNotes

func (client *Client) ListTicketNotes(request *ListTicketNotesRequest) (response *ListTicketNotesResponse, err error)

ListTicketNotes invokes the workorder.ListTicketNotes API synchronously

func (*Client) ListTicketNotesWithCallback

func (client *Client) ListTicketNotesWithCallback(request *ListTicketNotesRequest, callback func(response *ListTicketNotesResponse, err error)) <-chan int

ListTicketNotesWithCallback invokes the workorder.ListTicketNotes API asynchronously

func (*Client) ListTicketNotesWithChan

func (client *Client) ListTicketNotesWithChan(request *ListTicketNotesRequest) (<-chan *ListTicketNotesResponse, <-chan error)

ListTicketNotesWithChan invokes the workorder.ListTicketNotes API asynchronously

func (*Client) ListTickets

func (client *Client) ListTickets(request *ListTicketsRequest) (response *ListTicketsResponse, err error)

ListTickets invokes the workorder.ListTickets API synchronously

func (*Client) ListTicketsWithCallback

func (client *Client) ListTicketsWithCallback(request *ListTicketsRequest, callback func(response *ListTicketsResponse, err error)) <-chan int

ListTicketsWithCallback invokes the workorder.ListTickets API asynchronously

func (*Client) ListTicketsWithChan

func (client *Client) ListTicketsWithChan(request *ListTicketsRequest) (<-chan *ListTicketsResponse, <-chan error)

ListTicketsWithChan invokes the workorder.ListTickets API asynchronously

func (*Client) ReplyTicket

func (client *Client) ReplyTicket(request *ReplyTicketRequest) (response *ReplyTicketResponse, err error)

ReplyTicket invokes the workorder.ReplyTicket API synchronously

func (*Client) ReplyTicketWithCallback

func (client *Client) ReplyTicketWithCallback(request *ReplyTicketRequest, callback func(response *ReplyTicketResponse, err error)) <-chan int

ReplyTicketWithCallback invokes the workorder.ReplyTicket API asynchronously

func (*Client) ReplyTicketWithChan

func (client *Client) ReplyTicketWithChan(request *ReplyTicketRequest) (<-chan *ReplyTicketResponse, <-chan error)

ReplyTicketWithChan invokes the workorder.ReplyTicket API asynchronously

type CloseTicketRequest

type CloseTicketRequest struct {
	*requests.RpcRequest
	TicketId string `position:"Body" name:"TicketId"`
}

CloseTicketRequest is the request struct for api CloseTicket

func CreateCloseTicketRequest

func CreateCloseTicketRequest() (request *CloseTicketRequest)

CreateCloseTicketRequest creates a request to invoke CloseTicket API

type CloseTicketResponse

type CloseTicketResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Message   string `json:"Message" xml:"Message"`
	Success   bool   `json:"Success" xml:"Success"`
}

CloseTicketResponse is the response struct for api CloseTicket

func CreateCloseTicketResponse

func CreateCloseTicketResponse() (response *CloseTicketResponse)

CreateCloseTicketResponse creates a response to parse from CloseTicket response

type CreateTicketRequest

type CreateTicketRequest struct {
	*requests.RpcRequest
	Severity    requests.Integer `position:"Body" name:"Severity"`
	Description string           `position:"Body" name:"Description"`
	CategoryId  string           `position:"Body" name:"CategoryId"`
}

CreateTicketRequest is the request struct for api CreateTicket

func CreateCreateTicketRequest

func CreateCreateTicketRequest() (request *CreateTicketRequest)

CreateCreateTicketRequest creates a request to invoke CreateTicket API

type CreateTicketResponse

type CreateTicketResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
	Success   bool   `json:"Success" xml:"Success"`
}

CreateTicketResponse is the response struct for api CreateTicket

func CreateCreateTicketResponse

func CreateCreateTicketResponse() (response *CreateTicketResponse)

CreateCreateTicketResponse creates a response to parse from CreateTicket response

type DataInListCategories added in v1.61.1125

type DataInListCategories struct {
	DataItem []DataItem `json:"Data" xml:"Data"`
}

DataInListCategories is a nested struct in workorder response

type DataInListProducts added in v1.61.1125

type DataInListProducts struct {
	DataItem []DataItem `json:"Data" xml:"Data"`
}

DataInListProducts is a nested struct in workorder response

type DataInListTicketNotes added in v1.61.1125

type DataInListTicketNotes struct {
	DataItem []DataItem `json:"Data" xml:"Data"`
}

DataInListTicketNotes is a nested struct in workorder response

type DataInListTickets added in v1.61.1125

type DataInListTickets struct {
	DataItem []DataItemInListTickets `json:"Data" xml:"Data"`
}

DataInListTickets is a nested struct in workorder response

type DataItem added in v1.61.1125

type DataItem struct {
	DirectoryId   int64             `json:"DirectoryId" xml:"DirectoryId"`
	CategoryName  string            `json:"CategoryName" xml:"CategoryName"`
	Status        int               `json:"Status" xml:"Status"`
	DialogId      int64             `json:"DialogId" xml:"DialogId"`
	CreateTime    int64             `json:"CreateTime" xml:"CreateTime"`
	Tip           string            `json:"Tip" xml:"Tip"`
	CategoryId    int64             `json:"CategoryId" xml:"CategoryId"`
	DirectoryName string            `json:"DirectoryName" xml:"DirectoryName"`
	Type          int               `json:"Type" xml:"Type"`
	User          User              `json:"User" xml:"User"`
	Dialog        Dialog            `json:"Dialog" xml:"Dialog"`
	ProductList   []ProductListItem `json:"ProductList" xml:"ProductList"`
}

DataItem is a nested struct in workorder response

type DataItemInListTickets added in v1.61.1125

type DataItemInListTickets struct {
	Title    string `json:"Title" xml:"Title"`
	TicketId string `json:"TicketId" xml:"TicketId"`
	Status   Status `json:"Status" xml:"Status"`
}

DataItemInListTickets is a nested struct in workorder response

type Dialog added in v1.61.1130

type Dialog struct {
	Content string `json:"Content" xml:"Content"`
	Schema  string `json:"Schema" xml:"Schema"`
}

Dialog is a nested struct in workorder response

type GetMqConsumerTagRequest added in v1.61.1130

type GetMqConsumerTagRequest struct {
	*requests.RpcRequest
}

GetMqConsumerTagRequest is the request struct for api GetMqConsumerTag

func CreateGetMqConsumerTagRequest added in v1.61.1130

func CreateGetMqConsumerTagRequest() (request *GetMqConsumerTagRequest)

CreateGetMqConsumerTagRequest creates a request to invoke GetMqConsumerTag API

type GetMqConsumerTagResponse added in v1.61.1130

type GetMqConsumerTagResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
	Success   bool   `json:"Success" xml:"Success"`
}

GetMqConsumerTagResponse is the response struct for api GetMqConsumerTag

func CreateGetMqConsumerTagResponse added in v1.61.1130

func CreateGetMqConsumerTagResponse() (response *GetMqConsumerTagResponse)

CreateGetMqConsumerTagResponse creates a response to parse from GetMqConsumerTag response

type ListCategoriesRequest

type ListCategoriesRequest struct {
	*requests.RpcRequest
	ProductId requests.Integer `position:"Body" name:"ProductId"`
	Name      string           `position:"Body" name:"Name"`
}

ListCategoriesRequest is the request struct for api ListCategories

func CreateListCategoriesRequest

func CreateListCategoriesRequest() (request *ListCategoriesRequest)

CreateListCategoriesRequest creates a request to invoke ListCategories API

type ListCategoriesResponse

type ListCategoriesResponse struct {
	*responses.BaseResponse
	Code      int        `json:"Code" xml:"Code"`
	RequestId string     `json:"RequestId" xml:"RequestId"`
	Message   string     `json:"Message" xml:"Message"`
	Success   bool       `json:"Success" xml:"Success"`
	Data      []DataItem `json:"Data" xml:"Data"`
}

ListCategoriesResponse is the response struct for api ListCategories

func CreateListCategoriesResponse

func CreateListCategoriesResponse() (response *ListCategoriesResponse)

CreateListCategoriesResponse creates a response to parse from ListCategories response

type ListProductsRequest

type ListProductsRequest struct {
	*requests.RpcRequest
	Name string `position:"Query" name:"Name"`
}

ListProductsRequest is the request struct for api ListProducts

func CreateListProductsRequest

func CreateListProductsRequest() (request *ListProductsRequest)

CreateListProductsRequest creates a request to invoke ListProducts API

type ListProductsResponse

type ListProductsResponse struct {
	*responses.BaseResponse
	Code      int        `json:"Code" xml:"Code"`
	RequestId string     `json:"RequestId" xml:"RequestId"`
	Message   string     `json:"Message" xml:"Message"`
	Success   bool       `json:"Success" xml:"Success"`
	Data      []DataItem `json:"Data" xml:"Data"`
}

ListProductsResponse is the response struct for api ListProducts

func CreateListProductsResponse

func CreateListProductsResponse() (response *ListProductsResponse)

CreateListProductsResponse creates a response to parse from ListProducts response

type ListTicketNotesRequest

type ListTicketNotesRequest struct {
	*requests.RpcRequest
	TicketId string `position:"Query" name:"TicketId"`
}

ListTicketNotesRequest is the request struct for api ListTicketNotes

func CreateListTicketNotesRequest

func CreateListTicketNotesRequest() (request *ListTicketNotesRequest)

CreateListTicketNotesRequest creates a request to invoke ListTicketNotes API

type ListTicketNotesResponse

type ListTicketNotesResponse struct {
	*responses.BaseResponse
	Code      int        `json:"Code" xml:"Code"`
	RequestId string     `json:"RequestId" xml:"RequestId"`
	Message   string     `json:"Message" xml:"Message"`
	Success   bool       `json:"Success" xml:"Success"`
	Data      []DataItem `json:"Data" xml:"Data"`
}

ListTicketNotesResponse is the response struct for api ListTicketNotes

func CreateListTicketNotesResponse

func CreateListTicketNotesResponse() (response *ListTicketNotesResponse)

CreateListTicketNotesResponse creates a response to parse from ListTicketNotes response

type ListTicketsRequest

type ListTicketsRequest struct {
	*requests.RpcRequest
	StatusList *[]string        `position:"Body" name:"StatusList"  type:"Repeated"`
	StartDate  requests.Integer `position:"Body" name:"StartDate"`
	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
	EndDate    requests.Integer `position:"Body" name:"EndDate"`
	PageSize   requests.Integer `position:"Query" name:"PageSize"`
	Keyword    string           `position:"Body" name:"Keyword"`
	TicketId   string           `position:"Body" name:"TicketId"`
}

ListTicketsRequest is the request struct for api ListTickets

func CreateListTicketsRequest

func CreateListTicketsRequest() (request *ListTicketsRequest)

CreateListTicketsRequest creates a request to invoke ListTickets API

type ListTicketsResponse

type ListTicketsResponse struct {
	*responses.BaseResponse
	Code       int                     `json:"Code" xml:"Code"`
	RequestId  string                  `json:"RequestId" xml:"RequestId"`
	Message    string                  `json:"Message" xml:"Message"`
	PageNumber int                     `json:"PageNumber" xml:"PageNumber"`
	PageSize   int                     `json:"PageSize" xml:"PageSize"`
	TotalCount int64                   `json:"TotalCount" xml:"TotalCount"`
	Success    bool                    `json:"Success" xml:"Success"`
	Data       []DataItemInListTickets `json:"Data" xml:"Data"`
}

ListTicketsResponse is the response struct for api ListTickets

func CreateListTicketsResponse

func CreateListTicketsResponse() (response *ListTicketsResponse)

CreateListTicketsResponse creates a response to parse from ListTickets response

type ProductList

type ProductList struct {
	ProductListItem []ProductListItem `json:"ProductList" xml:"ProductList"`
}

ProductList is a nested struct in workorder response

type ProductListItem

type ProductListItem struct {
	ProductId   int64  `json:"ProductId" xml:"ProductId"`
	ProductName string `json:"ProductName" xml:"ProductName"`
}

ProductListItem is a nested struct in workorder response

type ReplyTicketRequest

type ReplyTicketRequest struct {
	*requests.RpcRequest
	Content  string           `position:"Body" name:"Content"`
	Encrypt  requests.Boolean `position:"Body" name:"Encrypt"`
	TicketId string           `position:"Body" name:"TicketId"`
}

ReplyTicketRequest is the request struct for api ReplyTicket

func CreateReplyTicketRequest

func CreateReplyTicketRequest() (request *ReplyTicketRequest)

CreateReplyTicketRequest creates a request to invoke ReplyTicket API

type ReplyTicketResponse

type ReplyTicketResponse struct {
	*responses.BaseResponse
	Code      int    `json:"Code" xml:"Code"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
	Success   bool   `json:"Success" xml:"Success"`
}

ReplyTicketResponse is the response struct for api ReplyTicket

func CreateReplyTicketResponse

func CreateReplyTicketResponse() (response *ReplyTicketResponse)

CreateReplyTicketResponse creates a response to parse from ReplyTicket response

type Status added in v1.61.1125

type Status struct {
	Label string `json:"Label" xml:"Label"`
	Value string `json:"Value" xml:"Value"`
}

Status is a nested struct in workorder response

type User added in v1.61.1130

type User struct {
	Name string `json:"Name" xml:"Name"`
	Role int    `json:"Role" xml:"Role"`
}

User is a nested struct in workorder response

Jump to

Keyboard shortcuts

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