tesladam

package
v1.61.1631 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 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 ActionDiskCheckRequest

type ActionDiskCheckRequest struct {
	*requests.RpcRequest
	DiskMount string `position:"Query" name:"DiskMount"`
	Ip        string `position:"Query" name:"Ip"`
}

ActionDiskCheckRequest is the request struct for api ActionDiskCheck

func CreateActionDiskCheckRequest

func CreateActionDiskCheckRequest() (request *ActionDiskCheckRequest)

CreateActionDiskCheckRequest creates a request to invoke ActionDiskCheck API

type ActionDiskCheckResponse

type ActionDiskCheckResponse struct {
	*responses.BaseResponse
	Status  bool   `json:"Status" xml:"Status"`
	Message string `json:"Message" xml:"Message"`
	Result  string `json:"Result" xml:"Result"`
}

ActionDiskCheckResponse is the response struct for api ActionDiskCheck

func CreateActionDiskCheckResponse

func CreateActionDiskCheckResponse() (response *ActionDiskCheckResponse)

CreateActionDiskCheckResponse creates a response to parse from ActionDiskCheck response

type ActionDiskMaskRequest

type ActionDiskMaskRequest struct {
	*requests.RpcRequest
	Op        string `position:"Query" name:"Op"`
	DiskMount string `position:"Query" name:"DiskMount"`
	Ip        string `position:"Query" name:"Ip"`
}

ActionDiskMaskRequest is the request struct for api ActionDiskMask

func CreateActionDiskMaskRequest

func CreateActionDiskMaskRequest() (request *ActionDiskMaskRequest)

CreateActionDiskMaskRequest creates a request to invoke ActionDiskMask API

type ActionDiskMaskResponse

type ActionDiskMaskResponse struct {
	*responses.BaseResponse
	Status  bool   `json:"Status" xml:"Status"`
	Message string `json:"Message" xml:"Message"`
	Result  string `json:"Result" xml:"Result"`
}

ActionDiskMaskResponse is the response struct for api ActionDiskMask

func CreateActionDiskMaskResponse

func CreateActionDiskMaskResponse() (response *ActionDiskMaskResponse)

CreateActionDiskMaskResponse creates a response to parse from ActionDiskMask response

type ActionDiskRmaRequest

type ActionDiskRmaRequest struct {
	*requests.RpcRequest
	DiskName    string `position:"Query" name:"DiskName"`
	ExecutionId string `position:"Query" name:"ExecutionId"`
	DiskSlot    string `position:"Query" name:"DiskSlot"`
	Hostname    string `position:"Query" name:"Hostname"`
	DiskMount   string `position:"Query" name:"DiskMount"`
	DiskReason  string `position:"Query" name:"DiskReason"`
	DiskSn      string `position:"Query" name:"DiskSn"`
}

ActionDiskRmaRequest is the request struct for api ActionDiskRma

func CreateActionDiskRmaRequest

func CreateActionDiskRmaRequest() (request *ActionDiskRmaRequest)

CreateActionDiskRmaRequest creates a request to invoke ActionDiskRma API

type ActionDiskRmaResponse

type ActionDiskRmaResponse struct {
	*responses.BaseResponse
	Status  bool   `json:"Status" xml:"Status"`
	Message string `json:"Message" xml:"Message"`
	Result  string `json:"Result" xml:"Result"`
}

ActionDiskRmaResponse is the response struct for api ActionDiskRma

func CreateActionDiskRmaResponse

func CreateActionDiskRmaResponse() (response *ActionDiskRmaResponse)

CreateActionDiskRmaResponse creates a response to parse from ActionDiskRma response

type ActionRequest

type ActionRequest struct {
	*requests.RpcRequest
	OrderId  requests.Integer `position:"Query" name:"OrderId"`
	StepCode string           `position:"Query" name:"StepCode"`
}

ActionRequest is the request struct for api Action

func CreateActionRequest

func CreateActionRequest() (request *ActionRequest)

CreateActionRequest creates a request to invoke Action API

type ActionResponse

type ActionResponse struct {
	*responses.BaseResponse
	Status  bool   `json:"Status" xml:"Status"`
	Message string `json:"Message" xml:"Message"`
	Result  string `json:"Result" xml:"Result"`
}

ActionResponse is the response struct for api Action

func CreateActionResponse

func CreateActionResponse() (response *ActionResponse)

CreateActionResponse creates a response to parse from Action response

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

func (client *Client) Action(request *ActionRequest) (response *ActionResponse, err error)

Action invokes the tesladam.Action API synchronously api document: https://help.aliyun.com/api/tesladam/action.html

func (*Client) ActionDiskCheck

func (client *Client) ActionDiskCheck(request *ActionDiskCheckRequest) (response *ActionDiskCheckResponse, err error)

ActionDiskCheck invokes the tesladam.ActionDiskCheck API synchronously api document: https://help.aliyun.com/api/tesladam/actiondiskcheck.html

func (*Client) ActionDiskCheckWithCallback

func (client *Client) ActionDiskCheckWithCallback(request *ActionDiskCheckRequest, callback func(response *ActionDiskCheckResponse, err error)) <-chan int

ActionDiskCheckWithCallback invokes the tesladam.ActionDiskCheck API asynchronously api document: https://help.aliyun.com/api/tesladam/actiondiskcheck.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ActionDiskCheckWithChan

func (client *Client) ActionDiskCheckWithChan(request *ActionDiskCheckRequest) (<-chan *ActionDiskCheckResponse, <-chan error)

ActionDiskCheckWithChan invokes the tesladam.ActionDiskCheck API asynchronously api document: https://help.aliyun.com/api/tesladam/actiondiskcheck.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ActionDiskMask

func (client *Client) ActionDiskMask(request *ActionDiskMaskRequest) (response *ActionDiskMaskResponse, err error)

ActionDiskMask invokes the tesladam.ActionDiskMask API synchronously api document: https://help.aliyun.com/api/tesladam/actiondiskmask.html

func (*Client) ActionDiskMaskWithCallback

func (client *Client) ActionDiskMaskWithCallback(request *ActionDiskMaskRequest, callback func(response *ActionDiskMaskResponse, err error)) <-chan int

ActionDiskMaskWithCallback invokes the tesladam.ActionDiskMask API asynchronously api document: https://help.aliyun.com/api/tesladam/actiondiskmask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ActionDiskMaskWithChan

func (client *Client) ActionDiskMaskWithChan(request *ActionDiskMaskRequest) (<-chan *ActionDiskMaskResponse, <-chan error)

ActionDiskMaskWithChan invokes the tesladam.ActionDiskMask API asynchronously api document: https://help.aliyun.com/api/tesladam/actiondiskmask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ActionDiskRma

func (client *Client) ActionDiskRma(request *ActionDiskRmaRequest) (response *ActionDiskRmaResponse, err error)

ActionDiskRma invokes the tesladam.ActionDiskRma API synchronously api document: https://help.aliyun.com/api/tesladam/actiondiskrma.html

func (*Client) ActionDiskRmaWithCallback

func (client *Client) ActionDiskRmaWithCallback(request *ActionDiskRmaRequest, callback func(response *ActionDiskRmaResponse, err error)) <-chan int

ActionDiskRmaWithCallback invokes the tesladam.ActionDiskRma API asynchronously api document: https://help.aliyun.com/api/tesladam/actiondiskrma.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ActionDiskRmaWithChan

func (client *Client) ActionDiskRmaWithChan(request *ActionDiskRmaRequest) (<-chan *ActionDiskRmaResponse, <-chan error)

ActionDiskRmaWithChan invokes the tesladam.ActionDiskRma API asynchronously api document: https://help.aliyun.com/api/tesladam/actiondiskrma.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ActionWithCallback

func (client *Client) ActionWithCallback(request *ActionRequest, callback func(response *ActionResponse, err error)) <-chan int

ActionWithCallback invokes the tesladam.Action API asynchronously api document: https://help.aliyun.com/api/tesladam/action.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ActionWithChan

func (client *Client) ActionWithChan(request *ActionRequest) (<-chan *ActionResponse, <-chan error)

ActionWithChan invokes the tesladam.Action API asynchronously api document: https://help.aliyun.com/api/tesladam/action.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) HostGets

func (client *Client) HostGets(request *HostGetsRequest) (response *HostGetsResponse, err error)

HostGets invokes the tesladam.HostGets API synchronously api document: https://help.aliyun.com/api/tesladam/hostgets.html

func (*Client) HostGetsWithCallback

func (client *Client) HostGetsWithCallback(request *HostGetsRequest, callback func(response *HostGetsResponse, err error)) <-chan int

HostGetsWithCallback invokes the tesladam.HostGets API asynchronously api document: https://help.aliyun.com/api/tesladam/hostgets.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) HostGetsWithChan

func (client *Client) HostGetsWithChan(request *HostGetsRequest) (<-chan *HostGetsResponse, <-chan error)

HostGetsWithChan invokes the tesladam.HostGets API asynchronously api document: https://help.aliyun.com/api/tesladam/hostgets.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type Data

type Data struct {
	Hostname         string `json:"Hostname" xml:"Hostname"`
	ClusterCode      string `json:"ClusterCode" xml:"ClusterCode"`
	Ip               string `json:"Ip" xml:"Ip"`
	HealthScoreLast  int    `json:"HealthScoreLast" xml:"HealthScoreLast"`
	HealthReasonLast string `json:"HealthReasonLast" xml:"HealthReasonLast"`
	AppCode          string `json:"AppCode" xml:"AppCode"`
	HeartStatus      int    `json:"heartStatus" xml:"heartStatus"`
	SshStatus        int    `json:"SshStatus" xml:"SshStatus"`
}

Data is a nested struct in tesladam response

type DataInHostGets

type DataInHostGets struct {
	Data []Data `json:"data" xml:"data"`
}

DataInHostGets is a nested struct in tesladam response

type HostGetsRequest

type HostGetsRequest struct {
	*requests.RpcRequest
	Query     string           `position:"Query" name:"Query"`
	EndTime   requests.Integer `position:"Query" name:"EndTime"`
	StartTime requests.Integer `position:"Query" name:"StartTime"`
	QueryType string           `position:"Query" name:"QueryType"`
}

HostGetsRequest is the request struct for api HostGets

func CreateHostGetsRequest

func CreateHostGetsRequest() (request *HostGetsRequest)

CreateHostGetsRequest creates a request to invoke HostGets API

type HostGetsResponse

type HostGetsResponse struct {
	*responses.BaseResponse
	Status  bool   `json:"Status" xml:"Status"`
	Message string `json:"Message" xml:"Message"`
	Data    []Data `json:"Data" xml:"Data"`
}

HostGetsResponse is the response struct for api HostGets

func CreateHostGetsResponse

func CreateHostGetsResponse() (response *HostGetsResponse)

CreateHostGetsResponse creates a response to parse from HostGets response

Jump to

Keyboard shortcuts

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