cloudgame

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: 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 = "regional"

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

func (client *Client) ListGames(request *ListGamesRequest) (response *ListGamesResponse, err error)

ListGames invokes the cloudgame.ListGames API synchronously api document: https://help.aliyun.com/api/cloudgame/listgames.html

func (*Client) ListGamesWithCallback

func (client *Client) ListGamesWithCallback(request *ListGamesRequest, callback func(response *ListGamesResponse, err error)) <-chan int

ListGamesWithCallback invokes the cloudgame.ListGames API asynchronously api document: https://help.aliyun.com/api/cloudgame/listgames.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListGamesWithChan

func (client *Client) ListGamesWithChan(request *ListGamesRequest) (<-chan *ListGamesResponse, <-chan error)

ListGamesWithChan invokes the cloudgame.ListGames API asynchronously api document: https://help.aliyun.com/api/cloudgame/listgames.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListProjects

func (client *Client) ListProjects(request *ListProjectsRequest) (response *ListProjectsResponse, err error)

ListProjects invokes the cloudgame.ListProjects API synchronously api document: https://help.aliyun.com/api/cloudgame/listprojects.html

func (*Client) ListProjectsWithCallback

func (client *Client) ListProjectsWithCallback(request *ListProjectsRequest, callback func(response *ListProjectsResponse, err error)) <-chan int

ListProjectsWithCallback invokes the cloudgame.ListProjects API asynchronously api document: https://help.aliyun.com/api/cloudgame/listprojects.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ListProjectsWithChan

func (client *Client) ListProjectsWithChan(request *ListProjectsRequest) (<-chan *ListProjectsResponse, <-chan error)

ListProjectsWithChan invokes the cloudgame.ListProjects API asynchronously api document: https://help.aliyun.com/api/cloudgame/listprojects.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type DataListInListGames

type DataListInListGames struct {
	DataListItem []DataListItem `json:"DataList" xml:"DataList"`
}

DataListInListGames is a nested struct in cloudgame response

type DataListInListProjects

type DataListInListProjects struct {
	DataListItem []DataListItem `json:"DataList" xml:"DataList"`
}

DataListInListProjects is a nested struct in cloudgame response

type DataListItem

type DataListItem struct {
	SavePath                 string `json:"SavePath" xml:"SavePath"`
	Device                   string `json:"Device" xml:"Device"`
	StandardCodeRate         string `json:"StandardCodeRate" xml:"StandardCodeRate"`
	ConcurrencyLimitNumber   int    `json:"ConcurrencyLimitNumber" xml:"ConcurrencyLimitNumber"`
	InstallPath              string `json:"InstallPath" xml:"InstallPath"`
	CurVersion               string `json:"CurVersion" xml:"CurVersion"`
	HighestCodeRate          string `json:"HighestCodeRate" xml:"HighestCodeRate"`
	HighDefinitionResolution string `json:"HighDefinitionResolution" xml:"HighDefinitionResolution"`
	HighDefinitionCodeRate   string `json:"HighDefinitionCodeRate" xml:"HighDefinitionCodeRate"`
	GameId                   string `json:"GameId" xml:"GameId"`
	StandardResolution       string `json:"StandardResolution" xml:"StandardResolution"`
	GameName                 string `json:"GameName" xml:"GameName"`
	InputType                string `json:"InputType" xml:"InputType"`
	Resolution               string `json:"Resolution" xml:"Resolution"`
	ProjectName              string `json:"ProjectName" xml:"ProjectName"`
	ProjectId                string `json:"ProjectId" xml:"ProjectId"`
	HighestResolution        string `json:"HighestResolution" xml:"HighestResolution"`
	Status                   string `json:"Status" xml:"Status"`
	FrameRate                string `json:"FrameRate" xml:"FrameRate"`
}

DataListItem is a nested struct in cloudgame response

type ListGamesRequest

type ListGamesRequest struct {
	*requests.RpcRequest
	OrderKey   string           `position:"Query" name:"OrderKey"`
	SortType   string           `position:"Query" name:"SortType"`
	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
	PageSize   requests.Integer `position:"Query" name:"PageSize"`
}

ListGamesRequest is the request struct for api ListGames

func CreateListGamesRequest

func CreateListGamesRequest() (request *ListGamesRequest)

CreateListGamesRequest creates a request to invoke ListGames API

type ListGamesResponse

type ListGamesResponse struct {
	*responses.BaseResponse
	Count       string         `json:"Count" xml:"Count"`
	PageSize    int            `json:"PageSize" xml:"PageSize"`
	CurrentPage int            `json:"CurrentPage" xml:"CurrentPage"`
	RequestId   string         `json:"RequestId" xml:"RequestId"`
	DataList    []DataListItem `json:"DataList" xml:"DataList"`
}

ListGamesResponse is the response struct for api ListGames

func CreateListGamesResponse

func CreateListGamesResponse() (response *ListGamesResponse)

CreateListGamesResponse creates a response to parse from ListGames response

type ListProjectsRequest

type ListProjectsRequest struct {
	*requests.RpcRequest
	ProjectName string           `position:"Query" name:"ProjectName"`
	PageNumber  requests.Integer `position:"Query" name:"PageNumber"`
	PageSize    requests.Integer `position:"Query" name:"PageSize"`
}

ListProjectsRequest is the request struct for api ListProjects

func CreateListProjectsRequest

func CreateListProjectsRequest() (request *ListProjectsRequest)

CreateListProjectsRequest creates a request to invoke ListProjects API

type ListProjectsResponse

type ListProjectsResponse struct {
	*responses.BaseResponse
	Count       int            `json:"Count" xml:"Count"`
	CurrentPage int            `json:"CurrentPage" xml:"CurrentPage"`
	PageSize    int            `json:"PageSize" xml:"PageSize"`
	RequestId   string         `json:"RequestId" xml:"RequestId"`
	DataList    []DataListItem `json:"DataList" xml:"DataList"`
}

ListProjectsResponse is the response struct for api ListProjects

func CreateListProjectsResponse

func CreateListProjectsResponse() (response *ListProjectsResponse)

CreateListProjectsResponse creates a response to parse from ListProjects response

Jump to

Keyboard shortcuts

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