lubancloud

package
v1.63.60 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuyOriginPicturesRequest

type BuyOriginPicturesRequest struct {
	*requests.RpcRequest
	PictureId *[]string `position:"Query" name:"PictureId"  type:"Repeated"`
}

BuyOriginPicturesRequest is the request struct for api BuyOriginPictures

func CreateBuyOriginPicturesRequest

func CreateBuyOriginPicturesRequest() (request *BuyOriginPicturesRequest)

CreateBuyOriginPicturesRequest creates a request to invoke BuyOriginPictures API

type BuyOriginPicturesResponse

type BuyOriginPicturesResponse struct {
	*responses.BaseResponse
	RequestId string    `json:"RequestId" xml:"RequestId"`
	Pictures  []Picture `json:"Pictures" xml:"Pictures"`
}

BuyOriginPicturesResponse is the response struct for api BuyOriginPictures

func CreateBuyOriginPicturesResponse

func CreateBuyOriginPicturesResponse() (response *BuyOriginPicturesResponse)

CreateBuyOriginPicturesResponse creates a response to parse from BuyOriginPictures response

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://help.aliyun.com/document_detail/66217.html

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://help.aliyun.com/document_detail/66223.html

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 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://help.aliyun.com/document_detail/66222.html

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 attention: rsa key pair auth is only Japan regions available

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://help.aliyun.com/document_detail/66222.html

func (*Client) BuyOriginPictures

func (client *Client) BuyOriginPictures(request *BuyOriginPicturesRequest) (response *BuyOriginPicturesResponse, err error)

BuyOriginPictures invokes the lubancloud.BuyOriginPictures API synchronously api document: https://help.aliyun.com/api/lubancloud/buyoriginpictures.html

func (*Client) BuyOriginPicturesWithCallback

func (client *Client) BuyOriginPicturesWithCallback(request *BuyOriginPicturesRequest, callback func(response *BuyOriginPicturesResponse, err error)) <-chan int

BuyOriginPicturesWithCallback invokes the lubancloud.BuyOriginPictures API asynchronously api document: https://help.aliyun.com/api/lubancloud/buyoriginpictures.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) BuyOriginPicturesWithChan

func (client *Client) BuyOriginPicturesWithChan(request *BuyOriginPicturesRequest) (<-chan *BuyOriginPicturesResponse, <-chan error)

BuyOriginPicturesWithChan invokes the lubancloud.BuyOriginPictures API asynchronously api document: https://help.aliyun.com/api/lubancloud/buyoriginpictures.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetStyles

func (client *Client) GetStyles(request *GetStylesRequest) (response *GetStylesResponse, err error)

GetStyles invokes the lubancloud.GetStyles API synchronously api document: https://help.aliyun.com/api/lubancloud/getstyles.html

func (*Client) GetStylesWithCallback

func (client *Client) GetStylesWithCallback(request *GetStylesRequest, callback func(response *GetStylesResponse, err error)) <-chan int

GetStylesWithCallback invokes the lubancloud.GetStyles API asynchronously api document: https://help.aliyun.com/api/lubancloud/getstyles.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetStylesWithChan

func (client *Client) GetStylesWithChan(request *GetStylesRequest) (<-chan *GetStylesResponse, <-chan error)

GetStylesWithChan invokes the lubancloud.GetStyles API asynchronously api document: https://help.aliyun.com/api/lubancloud/getstyles.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryCutoutTaskResult

func (client *Client) QueryCutoutTaskResult(request *QueryCutoutTaskResultRequest) (response *QueryCutoutTaskResultResponse, err error)

QueryCutoutTaskResult invokes the lubancloud.QueryCutoutTaskResult API synchronously api document: https://help.aliyun.com/api/lubancloud/querycutouttaskresult.html

func (*Client) QueryCutoutTaskResultWithCallback

func (client *Client) QueryCutoutTaskResultWithCallback(request *QueryCutoutTaskResultRequest, callback func(response *QueryCutoutTaskResultResponse, err error)) <-chan int

QueryCutoutTaskResultWithCallback invokes the lubancloud.QueryCutoutTaskResult API asynchronously api document: https://help.aliyun.com/api/lubancloud/querycutouttaskresult.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryCutoutTaskResultWithChan

func (client *Client) QueryCutoutTaskResultWithChan(request *QueryCutoutTaskResultRequest) (<-chan *QueryCutoutTaskResultResponse, <-chan error)

QueryCutoutTaskResultWithChan invokes the lubancloud.QueryCutoutTaskResult API asynchronously api document: https://help.aliyun.com/api/lubancloud/querycutouttaskresult.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryGenerateTaskResult

func (client *Client) QueryGenerateTaskResult(request *QueryGenerateTaskResultRequest) (response *QueryGenerateTaskResultResponse, err error)

QueryGenerateTaskResult invokes the lubancloud.QueryGenerateTaskResult API synchronously api document: https://help.aliyun.com/api/lubancloud/querygeneratetaskresult.html

func (*Client) QueryGenerateTaskResultWithCallback

func (client *Client) QueryGenerateTaskResultWithCallback(request *QueryGenerateTaskResultRequest, callback func(response *QueryGenerateTaskResultResponse, err error)) <-chan int

QueryGenerateTaskResultWithCallback invokes the lubancloud.QueryGenerateTaskResult API asynchronously api document: https://help.aliyun.com/api/lubancloud/querygeneratetaskresult.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryGenerateTaskResultWithChan

func (client *Client) QueryGenerateTaskResultWithChan(request *QueryGenerateTaskResultRequest) (<-chan *QueryGenerateTaskResultResponse, <-chan error)

QueryGenerateTaskResultWithChan invokes the lubancloud.QueryGenerateTaskResult API asynchronously api document: https://help.aliyun.com/api/lubancloud/querygeneratetaskresult.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SubmitCutoutTask

func (client *Client) SubmitCutoutTask(request *SubmitCutoutTaskRequest) (response *SubmitCutoutTaskResponse, err error)

SubmitCutoutTask invokes the lubancloud.SubmitCutoutTask API synchronously api document: https://help.aliyun.com/api/lubancloud/submitcutouttask.html

func (*Client) SubmitCutoutTaskWithCallback

func (client *Client) SubmitCutoutTaskWithCallback(request *SubmitCutoutTaskRequest, callback func(response *SubmitCutoutTaskResponse, err error)) <-chan int

SubmitCutoutTaskWithCallback invokes the lubancloud.SubmitCutoutTask API asynchronously api document: https://help.aliyun.com/api/lubancloud/submitcutouttask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SubmitCutoutTaskWithChan

func (client *Client) SubmitCutoutTaskWithChan(request *SubmitCutoutTaskRequest) (<-chan *SubmitCutoutTaskResponse, <-chan error)

SubmitCutoutTaskWithChan invokes the lubancloud.SubmitCutoutTask API asynchronously api document: https://help.aliyun.com/api/lubancloud/submitcutouttask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SubmitGenerateTask

func (client *Client) SubmitGenerateTask(request *SubmitGenerateTaskRequest) (response *SubmitGenerateTaskResponse, err error)

SubmitGenerateTask invokes the lubancloud.SubmitGenerateTask API synchronously api document: https://help.aliyun.com/api/lubancloud/submitgeneratetask.html

func (*Client) SubmitGenerateTaskWithCallback

func (client *Client) SubmitGenerateTaskWithCallback(request *SubmitGenerateTaskRequest, callback func(response *SubmitGenerateTaskResponse, err error)) <-chan int

SubmitGenerateTaskWithCallback invokes the lubancloud.SubmitGenerateTask API asynchronously api document: https://help.aliyun.com/api/lubancloud/submitgeneratetask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SubmitGenerateTaskWithChan

func (client *Client) SubmitGenerateTaskWithChan(request *SubmitGenerateTaskRequest) (<-chan *SubmitGenerateTaskResponse, <-chan error)

SubmitGenerateTaskWithChan invokes the lubancloud.SubmitGenerateTask API asynchronously api document: https://help.aliyun.com/api/lubancloud/submitgeneratetask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type GetStylesRequest

type GetStylesRequest struct {
	*requests.RpcRequest
}

GetStylesRequest is the request struct for api GetStyles

func CreateGetStylesRequest

func CreateGetStylesRequest() (request *GetStylesRequest)

CreateGetStylesRequest creates a request to invoke GetStyles API

type GetStylesResponse

type GetStylesResponse struct {
	*responses.BaseResponse
	RequestId string  `json:"RequestId" xml:"RequestId"`
	Styles    []Style `json:"Styles" xml:"Styles"`
}

GetStylesResponse is the response struct for api GetStyles

func CreateGetStylesResponse

func CreateGetStylesResponse() (response *GetStylesResponse)

CreateGetStylesResponse creates a response to parse from GetStyles response

type Picture

type Picture struct {
	Name               string `json:"Name" xml:"Name"`
	Status             int    `json:"Status" xml:"Status"`
	OriginalPictureUrl string `json:"OriginalPictureUrl" xml:"OriginalPictureUrl"`
	OriginUrl          string `json:"OriginUrl" xml:"OriginUrl"`
	CutoutUrl          string `json:"CutoutUrl" xml:"CutoutUrl"`
	ErrorMessage       string `json:"ErrorMessage" xml:"ErrorMessage"`
	Id                 int    `json:"Id" xml:"Id"`
	PreviewUrl         string `json:"PreviewUrl" xml:"PreviewUrl"`
	Width              int    `json:"Width" xml:"Width"`
	Height             int    `json:"Height" xml:"Height"`
	ErrorCode          string `json:"ErrorCode" xml:"ErrorCode"`
}

Picture is a nested struct in lubancloud response

type PicturesInBuyOriginPictures

type PicturesInBuyOriginPictures struct {
	Picture []Picture `json:"Picture" xml:"Picture"`
}

PicturesInBuyOriginPictures is a nested struct in lubancloud response

type PicturesInQueryCutoutTaskResult

type PicturesInQueryCutoutTaskResult struct {
	Picture []Picture `json:"Picture" xml:"Picture"`
}

PicturesInQueryCutoutTaskResult is a nested struct in lubancloud response

type PicturesInQueryGenerateTaskResult

type PicturesInQueryGenerateTaskResult struct {
	Picture []Picture `json:"Picture" xml:"Picture"`
}

PicturesInQueryGenerateTaskResult is a nested struct in lubancloud response

type QueryCutoutTaskResultRequest

type QueryCutoutTaskResultRequest struct {
	*requests.RpcRequest
	TaskId requests.Integer `position:"Query" name:"TaskId"`
}

QueryCutoutTaskResultRequest is the request struct for api QueryCutoutTaskResult

func CreateQueryCutoutTaskResultRequest

func CreateQueryCutoutTaskResultRequest() (request *QueryCutoutTaskResultRequest)

CreateQueryCutoutTaskResultRequest creates a request to invoke QueryCutoutTaskResult API

type QueryCutoutTaskResultResponse

type QueryCutoutTaskResultResponse struct {
	*responses.BaseResponse
	RequestId   string    `json:"RequestId" xml:"RequestId"`
	TotalSize   int       `json:"TotalSize" xml:"TotalSize"`
	WaitSize    int       `json:"WaitSize" xml:"WaitSize"`
	SuccessSize int       `json:"SuccessSize" xml:"SuccessSize"`
	FailSize    int       `json:"FailSize" xml:"FailSize"`
	Status      int       `json:"Status" xml:"Status"`
	Pictures    []Picture `json:"Pictures" xml:"Pictures"`
}

QueryCutoutTaskResultResponse is the response struct for api QueryCutoutTaskResult

func CreateQueryCutoutTaskResultResponse

func CreateQueryCutoutTaskResultResponse() (response *QueryCutoutTaskResultResponse)

CreateQueryCutoutTaskResultResponse creates a response to parse from QueryCutoutTaskResult response

type QueryGenerateTaskResultRequest

type QueryGenerateTaskResultRequest struct {
	*requests.RpcRequest
	TaskId requests.Integer `position:"Query" name:"TaskId"`
}

QueryGenerateTaskResultRequest is the request struct for api QueryGenerateTaskResult

func CreateQueryGenerateTaskResultRequest

func CreateQueryGenerateTaskResultRequest() (request *QueryGenerateTaskResultRequest)

CreateQueryGenerateTaskResultRequest creates a request to invoke QueryGenerateTaskResult API

type QueryGenerateTaskResultResponse

type QueryGenerateTaskResultResponse struct {
	*responses.BaseResponse
	RequestId   string    `json:"RequestId" xml:"RequestId"`
	TotalSize   int       `json:"TotalSize" xml:"TotalSize"`
	WaitSize    int       `json:"WaitSize" xml:"WaitSize"`
	SuccessSize int       `json:"SuccessSize" xml:"SuccessSize"`
	FailSize    int       `json:"FailSize" xml:"FailSize"`
	Status      int       `json:"Status" xml:"Status"`
	Pictures    []Picture `json:"Pictures" xml:"Pictures"`
}

QueryGenerateTaskResultResponse is the response struct for api QueryGenerateTaskResult

func CreateQueryGenerateTaskResultResponse

func CreateQueryGenerateTaskResultResponse() (response *QueryGenerateTaskResultResponse)

CreateQueryGenerateTaskResultResponse creates a response to parse from QueryGenerateTaskResult response

type Style

type Style struct {
	Id         int        `json:"Id" xml:"Id"`
	Name       string     `json:"Name" xml:"Name"`
	ParentId   int        `json:"ParentId" xml:"ParentId"`
	PreviewUrl string     `json:"PreviewUrl" xml:"PreviewUrl"`
	SubStyles  []SubStyle `json:"SubStyles" xml:"SubStyles"`
}

Style is a nested struct in lubancloud response

type Styles

type Styles struct {
	Style []Style `json:"Style" xml:"Style"`
}

Styles is a nested struct in lubancloud response

type SubStyle

type SubStyle struct {
	Id         int    `json:"Id" xml:"Id"`
	Name       string `json:"Name" xml:"Name"`
	ParentId   int    `json:"ParentId" xml:"ParentId"`
	PreviewUrl string `json:"PreviewUrl" xml:"PreviewUrl"`
}

SubStyle is a nested struct in lubancloud response

type SubStyles

type SubStyles struct {
	SubStyle []SubStyle `json:"SubStyle" xml:"SubStyle"`
}

SubStyles is a nested struct in lubancloud response

type SubmitCutoutTaskRequest

type SubmitCutoutTaskRequest struct {
	*requests.RpcRequest
	PictureUrl *[]string `position:"Query" name:"PictureUrl"  type:"Repeated"`
}

SubmitCutoutTaskRequest is the request struct for api SubmitCutoutTask

func CreateSubmitCutoutTaskRequest

func CreateSubmitCutoutTaskRequest() (request *SubmitCutoutTaskRequest)

CreateSubmitCutoutTaskRequest creates a request to invoke SubmitCutoutTask API

type SubmitCutoutTaskResponse

type SubmitCutoutTaskResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	TaskId    int    `json:"TaskId" xml:"TaskId"`
}

SubmitCutoutTaskResponse is the response struct for api SubmitCutoutTask

func CreateSubmitCutoutTaskResponse

func CreateSubmitCutoutTaskResponse() (response *SubmitCutoutTaskResponse)

CreateSubmitCutoutTaskResponse creates a response to parse from SubmitCutoutTask response

type SubmitGenerateTaskRequest

type SubmitGenerateTaskRequest struct {
	*requests.RpcRequest
	ImageCount     requests.Integer `position:"Query" name:"ImageCount"`
	ActionPoint    string           `position:"Query" name:"ActionPoint"`
	LogoImagePath  string           `position:"Query" name:"LogoImagePath"`
	Type           requests.Integer `position:"Query" name:"Type"`
	MajorImagePath *[]string        `position:"Query" name:"MajorImagePath"  type:"Repeated"`
	Width          requests.Integer `position:"Query" name:"Width"`
	CopyWrite      *[]string        `position:"Query" name:"CopyWrite"  type:"Repeated"`
	PropertyId     *[]string        `position:"Query" name:"PropertyId"  type:"Repeated"`
	Height         requests.Integer `position:"Query" name:"Height"`
}

SubmitGenerateTaskRequest is the request struct for api SubmitGenerateTask

func CreateSubmitGenerateTaskRequest

func CreateSubmitGenerateTaskRequest() (request *SubmitGenerateTaskRequest)

CreateSubmitGenerateTaskRequest creates a request to invoke SubmitGenerateTask API

type SubmitGenerateTaskResponse

type SubmitGenerateTaskResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	TaskId    int    `json:"TaskId" xml:"TaskId"`
}

SubmitGenerateTaskResponse is the response struct for api SubmitGenerateTask

func CreateSubmitGenerateTaskResponse

func CreateSubmitGenerateTaskResponse() (response *SubmitGenerateTaskResponse)

CreateSubmitGenerateTaskResponse creates a response to parse from SubmitGenerateTask response

Jump to

Keyboard shortcuts

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