maxcompute

package
v1.63.41 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 6

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

func (client *Client) CreateProject(request *CreateProjectRequest) (response *CreateProjectResponse, err error)

CreateProject invokes the maxcompute.CreateProject API synchronously api document: https://help.aliyun.com/api/maxcompute/createproject.html

func (*Client) CreateProjectWithCallback

func (client *Client) CreateProjectWithCallback(request *CreateProjectRequest, callback func(response *CreateProjectResponse, err error)) <-chan int

CreateProjectWithCallback invokes the maxcompute.CreateProject API asynchronously api document: https://help.aliyun.com/api/maxcompute/createproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateProjectWithChan

func (client *Client) CreateProjectWithChan(request *CreateProjectRequest) (<-chan *CreateProjectResponse, <-chan error)

CreateProjectWithChan invokes the maxcompute.CreateProject API asynchronously api document: https://help.aliyun.com/api/maxcompute/createproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteProject added in v1.61.57

func (client *Client) DeleteProject(request *DeleteProjectRequest) (response *DeleteProjectResponse, err error)

DeleteProject invokes the maxcompute.DeleteProject API synchronously api document: https://help.aliyun.com/api/maxcompute/deleteproject.html

func (*Client) DeleteProjectWithCallback added in v1.61.57

func (client *Client) DeleteProjectWithCallback(request *DeleteProjectRequest, callback func(response *DeleteProjectResponse, err error)) <-chan int

DeleteProjectWithCallback invokes the maxcompute.DeleteProject API asynchronously api document: https://help.aliyun.com/api/maxcompute/deleteproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteProjectWithChan added in v1.61.57

func (client *Client) DeleteProjectWithChan(request *DeleteProjectRequest) (<-chan *DeleteProjectResponse, <-chan error)

DeleteProjectWithChan invokes the maxcompute.DeleteProject API asynchronously api document: https://help.aliyun.com/api/maxcompute/deleteproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetProject added in v1.61.57

func (client *Client) GetProject(request *GetProjectRequest) (response *GetProjectResponse, err error)

GetProject invokes the maxcompute.GetProject API synchronously api document: https://help.aliyun.com/api/maxcompute/getproject.html

func (*Client) GetProjectWithCallback added in v1.61.57

func (client *Client) GetProjectWithCallback(request *GetProjectRequest, callback func(response *GetProjectResponse, err error)) <-chan int

GetProjectWithCallback invokes the maxcompute.GetProject API asynchronously api document: https://help.aliyun.com/api/maxcompute/getproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetProjectWithChan added in v1.61.57

func (client *Client) GetProjectWithChan(request *GetProjectRequest) (<-chan *GetProjectResponse, <-chan error)

GetProjectWithChan invokes the maxcompute.GetProject API asynchronously api document: https://help.aliyun.com/api/maxcompute/getproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type CreateProjectRequest

type CreateProjectRequest struct {
	*requests.RpcRequest
	OdpsRegionId          string `position:"Body" name:"OdpsRegionId"`
	ProjectName           string `position:"Body" name:"ProjectName"`
	OdpsSpecificationType string `position:"Body" name:"OdpsSpecificationType"`
	OrderType             string `position:"Body" name:"OrderType"`
}

CreateProjectRequest is the request struct for api CreateProject

func CreateCreateProjectRequest

func CreateCreateProjectRequest() (request *CreateProjectRequest)

CreateCreateProjectRequest creates a request to invoke CreateProject API

type CreateProjectResponse

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

CreateProjectResponse is the response struct for api CreateProject

func CreateCreateProjectResponse

func CreateCreateProjectResponse() (response *CreateProjectResponse)

CreateCreateProjectResponse creates a response to parse from CreateProject response

type DeleteProjectRequest added in v1.61.57

type DeleteProjectRequest struct {
	*requests.RpcRequest
	ProjectName  string `position:"Body" name:"ProjectName"`
	RegionIdName string `position:"Body" name:"RegionIdName"`
}

DeleteProjectRequest is the request struct for api DeleteProject

func CreateDeleteProjectRequest added in v1.61.57

func CreateDeleteProjectRequest() (request *DeleteProjectRequest)

CreateDeleteProjectRequest creates a request to invoke DeleteProject API

type DeleteProjectResponse added in v1.61.57

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

DeleteProjectResponse is the response struct for api DeleteProject

func CreateDeleteProjectResponse added in v1.61.57

func CreateDeleteProjectResponse() (response *DeleteProjectResponse)

CreateDeleteProjectResponse creates a response to parse from DeleteProject response

type GetProjectRequest added in v1.61.57

type GetProjectRequest struct {
	*requests.RpcRequest
	ProjectName string `position:"Body" name:"ProjectName"`
	RegionName  string `position:"Body" name:"RegionName"`
}

GetProjectRequest is the request struct for api GetProject

func CreateGetProjectRequest added in v1.61.57

func CreateGetProjectRequest() (request *GetProjectRequest)

CreateGetProjectRequest creates a request to invoke GetProject API

type GetProjectResponse added in v1.61.57

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

GetProjectResponse is the response struct for api GetProject

func CreateGetProjectResponse added in v1.61.57

func CreateGetProjectResponse() (response *GetProjectResponse)

CreateGetProjectResponse creates a response to parse from GetProject response

Jump to

Keyboard shortcuts

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