openanalytics

package
v1.62.367 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 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 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) CloseProductAccount

func (client *Client) CloseProductAccount(request *CloseProductAccountRequest) (response *CloseProductAccountResponse, err error)

CloseProductAccount invokes the openanalytics.CloseProductAccount API synchronously api document: https://help.aliyun.com/api/openanalytics/closeproductaccount.html

func (*Client) CloseProductAccountWithCallback

func (client *Client) CloseProductAccountWithCallback(request *CloseProductAccountRequest, callback func(response *CloseProductAccountResponse, err error)) <-chan int

CloseProductAccountWithCallback invokes the openanalytics.CloseProductAccount API asynchronously api document: https://help.aliyun.com/api/openanalytics/closeproductaccount.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CloseProductAccountWithChan

func (client *Client) CloseProductAccountWithChan(request *CloseProductAccountRequest) (<-chan *CloseProductAccountResponse, <-chan error)

CloseProductAccountWithChan invokes the openanalytics.CloseProductAccount API asynchronously api document: https://help.aliyun.com/api/openanalytics/closeproductaccount.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeRegionList

func (client *Client) DescribeRegionList(request *DescribeRegionListRequest) (response *DescribeRegionListResponse, err error)

DescribeRegionList invokes the openanalytics.DescribeRegionList API synchronously api document: https://help.aliyun.com/api/openanalytics/describeregionlist.html

func (*Client) DescribeRegionListWithCallback

func (client *Client) DescribeRegionListWithCallback(request *DescribeRegionListRequest, callback func(response *DescribeRegionListResponse, err error)) <-chan int

DescribeRegionListWithCallback invokes the openanalytics.DescribeRegionList API asynchronously api document: https://help.aliyun.com/api/openanalytics/describeregionlist.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeRegionListWithChan

func (client *Client) DescribeRegionListWithChan(request *DescribeRegionListRequest) (<-chan *DescribeRegionListResponse, <-chan error)

DescribeRegionListWithChan invokes the openanalytics.DescribeRegionList API asynchronously api document: https://help.aliyun.com/api/openanalytics/describeregionlist.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetAllowIP

func (client *Client) GetAllowIP(request *GetAllowIPRequest) (response *GetAllowIPResponse, err error)

GetAllowIP invokes the openanalytics.GetAllowIP API synchronously api document: https://help.aliyun.com/api/openanalytics/getallowip.html

func (*Client) GetAllowIPWithCallback

func (client *Client) GetAllowIPWithCallback(request *GetAllowIPRequest, callback func(response *GetAllowIPResponse, err error)) <-chan int

GetAllowIPWithCallback invokes the openanalytics.GetAllowIP API asynchronously api document: https://help.aliyun.com/api/openanalytics/getallowip.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetAllowIPWithChan

func (client *Client) GetAllowIPWithChan(request *GetAllowIPRequest) (<-chan *GetAllowIPResponse, <-chan error)

GetAllowIPWithChan invokes the openanalytics.GetAllowIP API asynchronously api document: https://help.aliyun.com/api/openanalytics/getallowip.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetEndPointByDomain

func (client *Client) GetEndPointByDomain(request *GetEndPointByDomainRequest) (response *GetEndPointByDomainResponse, err error)

GetEndPointByDomain invokes the openanalytics.GetEndPointByDomain API synchronously api document: https://help.aliyun.com/api/openanalytics/getendpointbydomain.html

func (*Client) GetEndPointByDomainWithCallback

func (client *Client) GetEndPointByDomainWithCallback(request *GetEndPointByDomainRequest, callback func(response *GetEndPointByDomainResponse, err error)) <-chan int

GetEndPointByDomainWithCallback invokes the openanalytics.GetEndPointByDomain API asynchronously api document: https://help.aliyun.com/api/openanalytics/getendpointbydomain.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetEndPointByDomainWithChan

func (client *Client) GetEndPointByDomainWithChan(request *GetEndPointByDomainRequest) (<-chan *GetEndPointByDomainResponse, <-chan error)

GetEndPointByDomainWithChan invokes the openanalytics.GetEndPointByDomain API asynchronously api document: https://help.aliyun.com/api/openanalytics/getendpointbydomain.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetProductStatus

func (client *Client) GetProductStatus(request *GetProductStatusRequest) (response *GetProductStatusResponse, err error)

GetProductStatus invokes the openanalytics.GetProductStatus API synchronously api document: https://help.aliyun.com/api/openanalytics/getproductstatus.html

func (*Client) GetProductStatusWithCallback

func (client *Client) GetProductStatusWithCallback(request *GetProductStatusRequest, callback func(response *GetProductStatusResponse, err error)) <-chan int

GetProductStatusWithCallback invokes the openanalytics.GetProductStatus API asynchronously api document: https://help.aliyun.com/api/openanalytics/getproductstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetProductStatusWithChan

func (client *Client) GetProductStatusWithChan(request *GetProductStatusRequest) (<-chan *GetProductStatusResponse, <-chan error)

GetProductStatusWithChan invokes the openanalytics.GetProductStatus API asynchronously api document: https://help.aliyun.com/api/openanalytics/getproductstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetRegionStatus

func (client *Client) GetRegionStatus(request *GetRegionStatusRequest) (response *GetRegionStatusResponse, err error)

GetRegionStatus invokes the openanalytics.GetRegionStatus API synchronously api document: https://help.aliyun.com/api/openanalytics/getregionstatus.html

func (*Client) GetRegionStatusWithCallback

func (client *Client) GetRegionStatusWithCallback(request *GetRegionStatusRequest, callback func(response *GetRegionStatusResponse, err error)) <-chan int

GetRegionStatusWithCallback invokes the openanalytics.GetRegionStatus API asynchronously api document: https://help.aliyun.com/api/openanalytics/getregionstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetRegionStatusWithChan

func (client *Client) GetRegionStatusWithChan(request *GetRegionStatusRequest) (<-chan *GetRegionStatusResponse, <-chan error)

GetRegionStatusWithChan invokes the openanalytics.GetRegionStatus API asynchronously api document: https://help.aliyun.com/api/openanalytics/getregionstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) OpenProductAccount

func (client *Client) OpenProductAccount(request *OpenProductAccountRequest) (response *OpenProductAccountResponse, err error)

OpenProductAccount invokes the openanalytics.OpenProductAccount API synchronously api document: https://help.aliyun.com/api/openanalytics/openproductaccount.html

func (*Client) OpenProductAccountWithCallback

func (client *Client) OpenProductAccountWithCallback(request *OpenProductAccountRequest, callback func(response *OpenProductAccountResponse, err error)) <-chan int

OpenProductAccountWithCallback invokes the openanalytics.OpenProductAccount API asynchronously api document: https://help.aliyun.com/api/openanalytics/openproductaccount.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) OpenProductAccountWithChan

func (client *Client) OpenProductAccountWithChan(request *OpenProductAccountRequest) (<-chan *OpenProductAccountResponse, <-chan error)

OpenProductAccountWithChan invokes the openanalytics.OpenProductAccount API asynchronously api document: https://help.aliyun.com/api/openanalytics/openproductaccount.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryEndPointList

func (client *Client) QueryEndPointList(request *QueryEndPointListRequest) (response *QueryEndPointListResponse, err error)

QueryEndPointList invokes the openanalytics.QueryEndPointList API synchronously api document: https://help.aliyun.com/api/openanalytics/queryendpointlist.html

func (*Client) QueryEndPointListWithCallback

func (client *Client) QueryEndPointListWithCallback(request *QueryEndPointListRequest, callback func(response *QueryEndPointListResponse, err error)) <-chan int

QueryEndPointListWithCallback invokes the openanalytics.QueryEndPointList API asynchronously api document: https://help.aliyun.com/api/openanalytics/queryendpointlist.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryEndPointListWithChan

func (client *Client) QueryEndPointListWithChan(request *QueryEndPointListRequest) (<-chan *QueryEndPointListResponse, <-chan error)

QueryEndPointListWithChan invokes the openanalytics.QueryEndPointList API asynchronously api document: https://help.aliyun.com/api/openanalytics/queryendpointlist.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SetAllowIP

func (client *Client) SetAllowIP(request *SetAllowIPRequest) (response *SetAllowIPResponse, err error)

SetAllowIP invokes the openanalytics.SetAllowIP API synchronously api document: https://help.aliyun.com/api/openanalytics/setallowip.html

func (*Client) SetAllowIPWithCallback

func (client *Client) SetAllowIPWithCallback(request *SetAllowIPRequest, callback func(response *SetAllowIPResponse, err error)) <-chan int

SetAllowIPWithCallback invokes the openanalytics.SetAllowIP API asynchronously api document: https://help.aliyun.com/api/openanalytics/setallowip.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SetAllowIPWithChan

func (client *Client) SetAllowIPWithChan(request *SetAllowIPRequest) (<-chan *SetAllowIPResponse, <-chan error)

SetAllowIPWithChan invokes the openanalytics.SetAllowIP API asynchronously api document: https://help.aliyun.com/api/openanalytics/setallowip.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type CloseProductAccountRequest

type CloseProductAccountRequest struct {
	*requests.RpcRequest
	ProductCode      string `position:"Body" name:"ProductCode"`
	ProductAccessKey string `position:"Body" name:"ProductAccessKey"`
	TargetUid        string `position:"Body" name:"TargetUid"`
	TargetArnRole    string `position:"Body" name:"TargetArnRole"`
}

CloseProductAccountRequest is the request struct for api CloseProductAccount

func CreateCloseProductAccountRequest

func CreateCloseProductAccountRequest() (request *CloseProductAccountRequest)

CreateCloseProductAccountRequest creates a request to invoke CloseProductAccount API

type CloseProductAccountResponse

type CloseProductAccountResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	RegionId  string `json:"RegionId" xml:"RegionId"`
}

CloseProductAccountResponse is the response struct for api CloseProductAccount

func CreateCloseProductAccountResponse

func CreateCloseProductAccountResponse() (response *CloseProductAccountResponse)

CreateCloseProductAccountResponse creates a response to parse from CloseProductAccount response

type DescribeRegionListRequest

type DescribeRegionListRequest struct {
	*requests.RpcRequest
}

DescribeRegionListRequest is the request struct for api DescribeRegionList

func CreateDescribeRegionListRequest

func CreateDescribeRegionListRequest() (request *DescribeRegionListRequest)

CreateDescribeRegionListRequest creates a request to invoke DescribeRegionList API

type DescribeRegionListResponse

type DescribeRegionListResponse struct {
	*responses.BaseResponse
	RequestId  string           `json:"RequestId" xml:"RequestId"`
	RegionId   string           `json:"RegionId" xml:"RegionId"`
	RegionList []RegionListItem `json:"RegionList" xml:"RegionList"`
}

DescribeRegionListResponse is the response struct for api DescribeRegionList

func CreateDescribeRegionListResponse

func CreateDescribeRegionListResponse() (response *DescribeRegionListResponse)

CreateDescribeRegionListResponse creates a response to parse from DescribeRegionList response

type EndPointInfo

type EndPointInfo struct {
	EndPointID      string `json:"endPointID" xml:"endPointID"`
	DomainURL       string `json:"domainURL" xml:"domainURL"`
	Host            string `json:"host" xml:"host"`
	Port            string `json:"port" xml:"port"`
	NetworkType     string `json:"networkType" xml:"networkType"`
	VpcID           string `json:"vpcID" xml:"vpcID"`
	VSwitch         string `json:"vSwitch" xml:"vSwitch"`
	Zone            string `json:"zone" xml:"zone"`
	AllowIP         string `json:"allowIP" xml:"allowIP"`
	CloudInstanceID string `json:"cloudInstanceID" xml:"cloudInstanceID"`
}

EndPointInfo is a nested struct in openanalytics response

type EndPointList

type EndPointList struct {
	EndPointListItem []EndPointListItem `json:"EndPointListItem" xml:"EndPointListItem"`
}

EndPointList is a nested struct in openanalytics response

type EndPointListItem

type EndPointListItem struct {
	EndPointID      string `json:"endPointID" xml:"endPointID"`
	Zone            string `json:"zone" xml:"zone"`
	VSwitch         string `json:"vSwitch" xml:"vSwitch"`
	Status          string `json:"status" xml:"status"`
	VpcID           string `json:"vpcID" xml:"vpcID"`
	Host            string `json:"host" xml:"host"`
	DomainURL       string `json:"domainURL" xml:"domainURL"`
	NetworkType     string `json:"networkType" xml:"networkType"`
	AllowIP         string `json:"allowIP" xml:"allowIP"`
	Port            string `json:"port" xml:"port"`
	CloudInstanceID string `json:"cloudInstanceID" xml:"cloudInstanceID"`
}

EndPointListItem is a nested struct in openanalytics response

type GetAllowIPRequest

type GetAllowIPRequest struct {
	*requests.RpcRequest
	UserID      requests.Integer `position:"Body" name:"UserID"`
	NetworkType string           `position:"Body" name:"NetworkType"`
}

GetAllowIPRequest is the request struct for api GetAllowIP

func CreateGetAllowIPRequest

func CreateGetAllowIPRequest() (request *GetAllowIPRequest)

CreateGetAllowIPRequest creates a request to invoke GetAllowIP API

type GetAllowIPResponse

type GetAllowIPResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	RegionId  string `json:"RegionId" xml:"RegionId"`
	AllowIP   string `json:"AllowIP" xml:"AllowIP"`
}

GetAllowIPResponse is the response struct for api GetAllowIP

func CreateGetAllowIPResponse

func CreateGetAllowIPResponse() (response *GetAllowIPResponse)

CreateGetAllowIPResponse creates a response to parse from GetAllowIP response

type GetEndPointByDomainRequest

type GetEndPointByDomainRequest struct {
	*requests.RpcRequest
	UserID    requests.Integer `position:"Body" name:"UserID"`
	DomainURL string           `position:"Body" name:"DomainURL"`
}

GetEndPointByDomainRequest is the request struct for api GetEndPointByDomain

func CreateGetEndPointByDomainRequest

func CreateGetEndPointByDomainRequest() (request *GetEndPointByDomainRequest)

CreateGetEndPointByDomainRequest creates a request to invoke GetEndPointByDomain API

type GetEndPointByDomainResponse

type GetEndPointByDomainResponse struct {
	*responses.BaseResponse
	RequestId    string       `json:"RequestId" xml:"RequestId"`
	RegionId     string       `json:"RegionId" xml:"RegionId"`
	EndPointInfo EndPointInfo `json:"EndPointInfo" xml:"EndPointInfo"`
}

GetEndPointByDomainResponse is the response struct for api GetEndPointByDomain

func CreateGetEndPointByDomainResponse

func CreateGetEndPointByDomainResponse() (response *GetEndPointByDomainResponse)

CreateGetEndPointByDomainResponse creates a response to parse from GetEndPointByDomain response

type GetProductStatusRequest

type GetProductStatusRequest struct {
	*requests.RpcRequest
	ProductCode      string `position:"Body" name:"ProductCode"`
	ProductAccessKey string `position:"Body" name:"ProductAccessKey"`
	TargetUid        string `position:"Body" name:"TargetUid"`
	TargetArnRole    string `position:"Body" name:"TargetArnRole"`
}

GetProductStatusRequest is the request struct for api GetProductStatus

func CreateGetProductStatusRequest

func CreateGetProductStatusRequest() (request *GetProductStatusRequest)

CreateGetProductStatusRequest creates a request to invoke GetProductStatus API

type GetProductStatusResponse

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

GetProductStatusResponse is the response struct for api GetProductStatus

func CreateGetProductStatusResponse

func CreateGetProductStatusResponse() (response *GetProductStatusResponse)

CreateGetProductStatusResponse creates a response to parse from GetProductStatus response

type GetRegionStatusRequest

type GetRegionStatusRequest struct {
	*requests.RpcRequest
	TargetUid requests.Integer `position:"Body" name:"TargetUid"`
}

GetRegionStatusRequest is the request struct for api GetRegionStatus

func CreateGetRegionStatusRequest

func CreateGetRegionStatusRequest() (request *GetRegionStatusRequest)

CreateGetRegionStatusRequest creates a request to invoke GetRegionStatus API

type GetRegionStatusResponse

type GetRegionStatusResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	RegionId  string `json:"RegionId" xml:"RegionId"`
	Status    string `json:"Status" xml:"Status"`
}

GetRegionStatusResponse is the response struct for api GetRegionStatus

func CreateGetRegionStatusResponse

func CreateGetRegionStatusResponse() (response *GetRegionStatusResponse)

CreateGetRegionStatusResponse creates a response to parse from GetRegionStatus response

type OpenProductAccountRequest

type OpenProductAccountRequest struct {
	*requests.RpcRequest
	ProductCode      string `position:"Body" name:"ProductCode"`
	ProductAccessKey string `position:"Body" name:"ProductAccessKey"`
	TargetUid        string `position:"Body" name:"TargetUid"`
	TargetArnRole    string `position:"Body" name:"TargetArnRole"`
}

OpenProductAccountRequest is the request struct for api OpenProductAccount

func CreateOpenProductAccountRequest

func CreateOpenProductAccountRequest() (request *OpenProductAccountRequest)

CreateOpenProductAccountRequest creates a request to invoke OpenProductAccount API

type OpenProductAccountResponse

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

OpenProductAccountResponse is the response struct for api OpenProductAccount

func CreateOpenProductAccountResponse

func CreateOpenProductAccountResponse() (response *OpenProductAccountResponse)

CreateOpenProductAccountResponse creates a response to parse from OpenProductAccount response

type QueryEndPointListRequest

type QueryEndPointListRequest struct {
	*requests.RpcRequest
	UserID requests.Integer `position:"Body" name:"UserID"`
}

QueryEndPointListRequest is the request struct for api QueryEndPointList

func CreateQueryEndPointListRequest

func CreateQueryEndPointListRequest() (request *QueryEndPointListRequest)

CreateQueryEndPointListRequest creates a request to invoke QueryEndPointList API

type QueryEndPointListResponse

type QueryEndPointListResponse struct {
	*responses.BaseResponse
	RequestId    string             `json:"RequestId" xml:"RequestId"`
	RegionId     string             `json:"RegionId" xml:"RegionId"`
	EndPointList []EndPointListItem `json:"EndPointList" xml:"EndPointList"`
}

QueryEndPointListResponse is the response struct for api QueryEndPointList

func CreateQueryEndPointListResponse

func CreateQueryEndPointListResponse() (response *QueryEndPointListResponse)

CreateQueryEndPointListResponse creates a response to parse from QueryEndPointList response

type RegionList

type RegionList struct {
	RegionListItem []RegionListItem `json:"RegionListItem" xml:"RegionListItem"`
}

RegionList is a nested struct in openanalytics response

type RegionListItem

type RegionListItem struct {
	RegionID string `json:"regionID" xml:"regionID"`
}

RegionListItem is a nested struct in openanalytics response

type SetAllowIPRequest

type SetAllowIPRequest struct {
	*requests.RpcRequest
	UserID      requests.Integer `position:"Body" name:"UserID"`
	NetworkType string           `position:"Body" name:"NetworkType"`
	AllowIP     string           `position:"Body" name:"AllowIP"`
	Append      requests.Boolean `position:"Body" name:"Append"`
}

SetAllowIPRequest is the request struct for api SetAllowIP

func CreateSetAllowIPRequest

func CreateSetAllowIPRequest() (request *SetAllowIPRequest)

CreateSetAllowIPRequest creates a request to invoke SetAllowIP API

type SetAllowIPResponse

type SetAllowIPResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	RegionId  string `json:"RegionId" xml:"RegionId"`
}

SetAllowIPResponse is the response struct for api SetAllowIP

func CreateSetAllowIPResponse

func CreateSetAllowIPResponse() (response *SetAllowIPResponse)

CreateSetAllowIPResponse creates a response to parse from SetAllowIP response

Jump to

Keyboard shortcuts

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