aigen

package
v1.62.763 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) GenerateCosplayImage

func (client *Client) GenerateCosplayImage(request *GenerateCosplayImageRequest) (response *GenerateCosplayImageResponse, err error)

GenerateCosplayImage invokes the aigen.GenerateCosplayImage API synchronously

func (*Client) GenerateCosplayImageWithCallback

func (client *Client) GenerateCosplayImageWithCallback(request *GenerateCosplayImageRequest, callback func(response *GenerateCosplayImageResponse, err error)) <-chan int

GenerateCosplayImageWithCallback invokes the aigen.GenerateCosplayImage API asynchronously

func (*Client) GenerateCosplayImageWithChan

func (client *Client) GenerateCosplayImageWithChan(request *GenerateCosplayImageRequest) (<-chan *GenerateCosplayImageResponse, <-chan error)

GenerateCosplayImageWithChan invokes the aigen.GenerateCosplayImage API asynchronously

func (*Client) GenerateTextDeformation

func (client *Client) GenerateTextDeformation(request *GenerateTextDeformationRequest) (response *GenerateTextDeformationResponse, err error)

GenerateTextDeformation invokes the aigen.GenerateTextDeformation API synchronously

func (*Client) GenerateTextDeformationWithCallback

func (client *Client) GenerateTextDeformationWithCallback(request *GenerateTextDeformationRequest, callback func(response *GenerateTextDeformationResponse, err error)) <-chan int

GenerateTextDeformationWithCallback invokes the aigen.GenerateTextDeformation API asynchronously

func (*Client) GenerateTextDeformationWithChan

func (client *Client) GenerateTextDeformationWithChan(request *GenerateTextDeformationRequest) (<-chan *GenerateTextDeformationResponse, <-chan error)

GenerateTextDeformationWithChan invokes the aigen.GenerateTextDeformation API asynchronously

func (*Client) GenerateTextTexture

func (client *Client) GenerateTextTexture(request *GenerateTextTextureRequest) (response *GenerateTextTextureResponse, err error)

GenerateTextTexture invokes the aigen.GenerateTextTexture API synchronously

func (*Client) GenerateTextTextureWithCallback

func (client *Client) GenerateTextTextureWithCallback(request *GenerateTextTextureRequest, callback func(response *GenerateTextTextureResponse, err error)) <-chan int

GenerateTextTextureWithCallback invokes the aigen.GenerateTextTexture API asynchronously

func (*Client) GenerateTextTextureWithChan

func (client *Client) GenerateTextTextureWithChan(request *GenerateTextTextureRequest) (<-chan *GenerateTextTextureResponse, <-chan error)

GenerateTextTextureWithChan invokes the aigen.GenerateTextTexture API asynchronously

func (*Client) InteractiveFullSegmentation

func (client *Client) InteractiveFullSegmentation(request *InteractiveFullSegmentationRequest) (response *InteractiveFullSegmentationResponse, err error)

InteractiveFullSegmentation invokes the aigen.InteractiveFullSegmentation API synchronously

func (*Client) InteractiveFullSegmentationWithCallback

func (client *Client) InteractiveFullSegmentationWithCallback(request *InteractiveFullSegmentationRequest, callback func(response *InteractiveFullSegmentationResponse, err error)) <-chan int

InteractiveFullSegmentationWithCallback invokes the aigen.InteractiveFullSegmentation API asynchronously

func (*Client) InteractiveFullSegmentationWithChan

func (client *Client) InteractiveFullSegmentationWithChan(request *InteractiveFullSegmentationRequest) (<-chan *InteractiveFullSegmentationResponse, <-chan error)

InteractiveFullSegmentationWithChan invokes the aigen.InteractiveFullSegmentation API asynchronously

func (*Client) InteractiveScribbleSegmentation

func (client *Client) InteractiveScribbleSegmentation(request *InteractiveScribbleSegmentationRequest) (response *InteractiveScribbleSegmentationResponse, err error)

InteractiveScribbleSegmentation invokes the aigen.InteractiveScribbleSegmentation API synchronously

func (*Client) InteractiveScribbleSegmentationWithCallback

func (client *Client) InteractiveScribbleSegmentationWithCallback(request *InteractiveScribbleSegmentationRequest, callback func(response *InteractiveScribbleSegmentationResponse, err error)) <-chan int

InteractiveScribbleSegmentationWithCallback invokes the aigen.InteractiveScribbleSegmentation API asynchronously

func (*Client) InteractiveScribbleSegmentationWithChan

func (client *Client) InteractiveScribbleSegmentationWithChan(request *InteractiveScribbleSegmentationRequest) (<-chan *InteractiveScribbleSegmentationResponse, <-chan error)

InteractiveScribbleSegmentationWithChan invokes the aigen.InteractiveScribbleSegmentation API asynchronously

type Data

type Data struct {
	ResultUrl string `json:"ResultUrl" xml:"ResultUrl"`
}

Data is a nested struct in aigen response

type GenerateCosplayImageRequest

type GenerateCosplayImageRequest struct {
	*requests.RpcRequest
	TemplateImageUrl string           `position:"Body" name:"TemplateImageUrl"`
	FaceImageUrl     string           `position:"Body" name:"FaceImageUrl"`
	Async            requests.Boolean `position:"Body" name:"Async"`
	Style            requests.Integer `position:"Body" name:"Style"`
}

GenerateCosplayImageRequest is the request struct for api GenerateCosplayImage

func CreateGenerateCosplayImageRequest

func CreateGenerateCosplayImageRequest() (request *GenerateCosplayImageRequest)

CreateGenerateCosplayImageRequest creates a request to invoke GenerateCosplayImage API

type GenerateCosplayImageResponse

type GenerateCosplayImageResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

GenerateCosplayImageResponse is the response struct for api GenerateCosplayImage

func CreateGenerateCosplayImageResponse

func CreateGenerateCosplayImageResponse() (response *GenerateCosplayImageResponse)

CreateGenerateCosplayImageResponse creates a response to parse from GenerateCosplayImage response

type GenerateTextDeformationRequest

type GenerateTextDeformationRequest struct {
	*requests.RpcRequest
	TextContent      string           `position:"Body" name:"TextContent"`
	FontName         string           `position:"Body" name:"FontName"`
	TtfUrl           string           `position:"Body" name:"TtfUrl"`
	N                requests.Integer `position:"Body" name:"N"`
	Async            requests.Boolean `position:"Body" name:"Async"`
	Prompt           string           `position:"Body" name:"Prompt"`
	OutputImageRatio string           `position:"Body" name:"OutputImageRatio"`
}

GenerateTextDeformationRequest is the request struct for api GenerateTextDeformation

func CreateGenerateTextDeformationRequest

func CreateGenerateTextDeformationRequest() (request *GenerateTextDeformationRequest)

CreateGenerateTextDeformationRequest creates a request to invoke GenerateTextDeformation API

type GenerateTextDeformationResponse

type GenerateTextDeformationResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

GenerateTextDeformationResponse is the response struct for api GenerateTextDeformation

func CreateGenerateTextDeformationResponse

func CreateGenerateTextDeformationResponse() (response *GenerateTextDeformationResponse)

CreateGenerateTextDeformationResponse creates a response to parse from GenerateTextDeformation response

type GenerateTextTextureRequest

type GenerateTextTextureRequest struct {
	*requests.RpcRequest
	TextContent      string           `position:"Body" name:"TextContent"`
	TextureStyle     string           `position:"Query" name:"TextureStyle"`
	FontName         string           `position:"Body" name:"FontName"`
	TtfUrl           string           `position:"Body" name:"TtfUrl"`
	N                requests.Integer `position:"Body" name:"N"`
	Async            requests.Boolean `position:"Body" name:"Async"`
	AlphaChannel     requests.Boolean `position:"Body" name:"AlphaChannel"`
	ImageUrl         string           `position:"Body" name:"ImageUrl"`
	ImageShortSize   requests.Integer `position:"Body" name:"ImageShortSize"`
	Prompt           string           `position:"Body" name:"Prompt"`
	OutputImageRatio string           `position:"Body" name:"OutputImageRatio"`
}

GenerateTextTextureRequest is the request struct for api GenerateTextTexture

func CreateGenerateTextTextureRequest

func CreateGenerateTextTextureRequest() (request *GenerateTextTextureRequest)

CreateGenerateTextTextureRequest creates a request to invoke GenerateTextTexture API

type GenerateTextTextureResponse

type GenerateTextTextureResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

GenerateTextTextureResponse is the response struct for api GenerateTextTexture

func CreateGenerateTextTextureResponse

func CreateGenerateTextTextureResponse() (response *GenerateTextTextureResponse)

CreateGenerateTextTextureResponse creates a response to parse from GenerateTextTexture response

type InteractiveFullSegmentationRequest

type InteractiveFullSegmentationRequest struct {
	*requests.RpcRequest
	ReturnFormat string           `position:"Body" name:"ReturnFormat"`
	Async        requests.Boolean `position:"Body" name:"Async"`
	ImageUrl     string           `position:"Body" name:"ImageUrl"`
}

InteractiveFullSegmentationRequest is the request struct for api InteractiveFullSegmentation

func CreateInteractiveFullSegmentationRequest

func CreateInteractiveFullSegmentationRequest() (request *InteractiveFullSegmentationRequest)

CreateInteractiveFullSegmentationRequest creates a request to invoke InteractiveFullSegmentation API

type InteractiveFullSegmentationResponse

type InteractiveFullSegmentationResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

InteractiveFullSegmentationResponse is the response struct for api InteractiveFullSegmentation

func CreateInteractiveFullSegmentationResponse

func CreateInteractiveFullSegmentationResponse() (response *InteractiveFullSegmentationResponse)

CreateInteractiveFullSegmentationResponse creates a response to parse from InteractiveFullSegmentation response

type InteractiveScribbleSegmentationRequest

type InteractiveScribbleSegmentationRequest struct {
	*requests.RpcRequest
	PosScribbleImageUrl string `position:"Body" name:"PosScribbleImageUrl"`
	IntegratedMaskUrl   string `position:"Body" name:"IntegratedMaskUrl"`
	MaskImageUrl        string `position:"Body" name:"MaskImageUrl"`
	ReturnForm          string `position:"Body" name:"ReturnForm"`
	NegScribbleImageUrl string `position:"Body" name:"NegScribbleImageUrl"`
	ReturnFormat        string `position:"Body" name:"ReturnFormat"`
	EdgeFeathering      string `position:"Body" name:"EdgeFeathering"`
	ImageUrl            string `position:"Body" name:"ImageUrl"`
	PostprocessOption   string `position:"Body" name:"PostprocessOption"`
}

InteractiveScribbleSegmentationRequest is the request struct for api InteractiveScribbleSegmentation

func CreateInteractiveScribbleSegmentationRequest

func CreateInteractiveScribbleSegmentationRequest() (request *InteractiveScribbleSegmentationRequest)

CreateInteractiveScribbleSegmentationRequest creates a request to invoke InteractiveScribbleSegmentation API

type InteractiveScribbleSegmentationResponse

type InteractiveScribbleSegmentationResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

InteractiveScribbleSegmentationResponse is the response struct for api InteractiveScribbleSegmentation

func CreateInteractiveScribbleSegmentationResponse

func CreateInteractiveScribbleSegmentationResponse() (response *InteractiveScribbleSegmentationResponse)

CreateInteractiveScribbleSegmentationResponse creates a response to parse from InteractiveScribbleSegmentation response

Jump to

Keyboard shortcuts

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