ft

package
v1.62.796 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 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 added in v1.61.955

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType added in v1.61.955

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty added in v1.61.955

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

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient added in v1.61.955

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) CreateIns added in v1.62.520

func (client *Client) CreateIns(request *CreateInsRequest) (response *CreateInsResponse, err error)

CreateIns invokes the ft.CreateIns API synchronously

func (*Client) CreateInsWithCallback added in v1.62.520

func (client *Client) CreateInsWithCallback(request *CreateInsRequest, callback func(response *CreateInsResponse, err error)) <-chan int

CreateInsWithCallback invokes the ft.CreateIns API asynchronously

func (*Client) CreateInsWithChan added in v1.62.520

func (client *Client) CreateInsWithChan(request *CreateInsRequest) (<-chan *CreateInsResponse, <-chan error)

CreateInsWithChan invokes the ft.CreateIns API asynchronously

func (*Client) RpcNoDefaultErrorCodeApi added in v1.62.520

func (client *Client) RpcNoDefaultErrorCodeApi(request *RpcNoDefaultErrorCodeApiRequest) (response *RpcNoDefaultErrorCodeApiResponse, err error)

RpcNoDefaultErrorCodeApi invokes the ft.RpcNoDefaultErrorCodeApi API synchronously

func (*Client) RpcNoDefaultErrorCodeApiWithCallback added in v1.62.520

func (client *Client) RpcNoDefaultErrorCodeApiWithCallback(request *RpcNoDefaultErrorCodeApiRequest, callback func(response *RpcNoDefaultErrorCodeApiResponse, err error)) <-chan int

RpcNoDefaultErrorCodeApiWithCallback invokes the ft.RpcNoDefaultErrorCodeApi API asynchronously

func (*Client) RpcNoDefaultErrorCodeApiWithChan added in v1.62.520

func (client *Client) RpcNoDefaultErrorCodeApiWithChan(request *RpcNoDefaultErrorCodeApiRequest) (<-chan *RpcNoDefaultErrorCodeApiResponse, <-chan error)

RpcNoDefaultErrorCodeApiWithChan invokes the ft.RpcNoDefaultErrorCodeApi API asynchronously

func (*Client) UpdateIns added in v1.62.520

func (client *Client) UpdateIns(request *UpdateInsRequest) (response *UpdateInsResponse, err error)

UpdateIns invokes the ft.UpdateIns API synchronously

func (*Client) UpdateInsWithCallback added in v1.62.520

func (client *Client) UpdateInsWithCallback(request *UpdateInsRequest, callback func(response *UpdateInsResponse, err error)) <-chan int

UpdateInsWithCallback invokes the ft.UpdateIns API asynchronously

func (*Client) UpdateInsWithChan added in v1.62.520

func (client *Client) UpdateInsWithChan(request *UpdateInsRequest) (<-chan *UpdateInsResponse, <-chan error)

UpdateInsWithChan invokes the ft.UpdateIns API asynchronously

type CreateInsRequest added in v1.62.520

type CreateInsRequest struct {
	*requests.RpcRequest
	NewParam1 string `position:"Query" name:"new-param-1"`
	Bind      string `position:"Query" name:"Bind"`
	Test      string `position:"Query" name:"Test"`
	Success   string `position:"Query" name:"Success"`
	Time      string `position:"Query" name:"Time"`
	NewPala   string `position:"Query" name:"NewPala"`
}

CreateInsRequest is the request struct for api CreateIns

func CreateCreateInsRequest added in v1.62.520

func CreateCreateInsRequest() (request *CreateInsRequest)

CreateCreateInsRequest creates a request to invoke CreateIns API

type CreateInsResponse added in v1.62.520

type CreateInsResponse struct {
	*responses.BaseResponse
	Code    string `json:"Code" xml:"Code"`
	Success string `json:"Success" xml:"Success"`
}

CreateInsResponse is the response struct for api CreateIns

func CreateCreateInsResponse added in v1.62.520

func CreateCreateInsResponse() (response *CreateInsResponse)

CreateCreateInsResponse creates a response to parse from CreateIns response

type RpcNoDefaultErrorCodeApiRequest added in v1.62.520

type RpcNoDefaultErrorCodeApiRequest struct {
	*requests.RpcRequest
	HttpMe         string `position:"Query" name:"HttpMe"`
	HttpStatusCode string `position:"Query" name:"HttpStatusCode"`
	SetUser        string `position:"Query" name:"SetUser"`
	Code           string `position:"Query" name:"Code"`
	Success        string `position:"Query" name:"Success"`
	Message        string `position:"Query" name:"Message"`
}

RpcNoDefaultErrorCodeApiRequest is the request struct for api RpcNoDefaultErrorCodeApi

func CreateRpcNoDefaultErrorCodeApiRequest added in v1.62.520

func CreateRpcNoDefaultErrorCodeApiRequest() (request *RpcNoDefaultErrorCodeApiRequest)

CreateRpcNoDefaultErrorCodeApiRequest creates a request to invoke RpcNoDefaultErrorCodeApi API

type RpcNoDefaultErrorCodeApiResponse added in v1.62.520

type RpcNoDefaultErrorCodeApiResponse struct {
	*responses.BaseResponse
	Code    string `json:"Code" xml:"Code"`
	Success string `json:"Success" xml:"Success"`
}

RpcNoDefaultErrorCodeApiResponse is the response struct for api RpcNoDefaultErrorCodeApi

func CreateRpcNoDefaultErrorCodeApiResponse added in v1.62.520

func CreateRpcNoDefaultErrorCodeApiResponse() (response *RpcNoDefaultErrorCodeApiResponse)

CreateRpcNoDefaultErrorCodeApiResponse creates a response to parse from RpcNoDefaultErrorCodeApi response

type UpdateInsRequest added in v1.62.520

type UpdateInsRequest struct {
	*requests.RpcRequest
	Succeed         string `position:"Query" name:"Succeed"`
	HttpStatusCode1 string `position:"Query" name:"HttpStatusCode1"`
}

UpdateInsRequest is the request struct for api UpdateIns

func CreateUpdateInsRequest added in v1.62.520

func CreateUpdateInsRequest() (request *UpdateInsRequest)

CreateUpdateInsRequest creates a request to invoke UpdateIns API

type UpdateInsResponse added in v1.62.520

type UpdateInsResponse struct {
	*responses.BaseResponse
	Code    string `json:"Code" xml:"Code"`
	Success string `json:"Success" xml:"Success"`
}

UpdateInsResponse is the response struct for api UpdateIns

func CreateUpdateInsResponse added in v1.62.520

func CreateUpdateInsResponse() (response *UpdateInsResponse)

CreateUpdateInsResponse creates a response to parse from UpdateIns response

Jump to

Keyboard shortcuts

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