dms_enterprise

package
v0.0.0-...-bbc24d0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 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) DeleteUser

func (client *Client) DeleteUser(request *DeleteUserRequest) (response *DeleteUserResponse, err error)

DeleteUser invokes the dms_enterprise.DeleteUser API synchronously api document: https://help.aliyun.com/api/dms-enterprise/deleteuser.html

func (*Client) DeleteUserWithCallback

func (client *Client) DeleteUserWithCallback(request *DeleteUserRequest, callback func(response *DeleteUserResponse, err error)) <-chan int

DeleteUserWithCallback invokes the dms_enterprise.DeleteUser API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/deleteuser.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteUserWithChan

func (client *Client) DeleteUserWithChan(request *DeleteUserRequest) (<-chan *DeleteUserResponse, <-chan error)

DeleteUserWithChan invokes the dms_enterprise.DeleteUser API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/deleteuser.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DisableUser

func (client *Client) DisableUser(request *DisableUserRequest) (response *DisableUserResponse, err error)

DisableUser invokes the dms_enterprise.DisableUser API synchronously api document: https://help.aliyun.com/api/dms-enterprise/disableuser.html

func (*Client) DisableUserWithCallback

func (client *Client) DisableUserWithCallback(request *DisableUserRequest, callback func(response *DisableUserResponse, err error)) <-chan int

DisableUserWithCallback invokes the dms_enterprise.DisableUser API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/disableuser.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DisableUserWithChan

func (client *Client) DisableUserWithChan(request *DisableUserRequest) (<-chan *DisableUserResponse, <-chan error)

DisableUserWithChan invokes the dms_enterprise.DisableUser API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/disableuser.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) EnableUser

func (client *Client) EnableUser(request *EnableUserRequest) (response *EnableUserResponse, err error)

EnableUser invokes the dms_enterprise.EnableUser API synchronously api document: https://help.aliyun.com/api/dms-enterprise/enableuser.html

func (*Client) EnableUserWithCallback

func (client *Client) EnableUserWithCallback(request *EnableUserRequest, callback func(response *EnableUserResponse, err error)) <-chan int

EnableUserWithCallback invokes the dms_enterprise.EnableUser API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/enableuser.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) EnableUserWithChan

func (client *Client) EnableUserWithChan(request *EnableUserRequest) (<-chan *EnableUserResponse, <-chan error)

EnableUserWithChan invokes the dms_enterprise.EnableUser API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/enableuser.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetOpLog

func (client *Client) GetOpLog(request *GetOpLogRequest) (response *GetOpLogResponse, err error)

GetOpLog invokes the dms_enterprise.GetOpLog API synchronously api document: https://help.aliyun.com/api/dms-enterprise/getoplog.html

func (*Client) GetOpLogWithCallback

func (client *Client) GetOpLogWithCallback(request *GetOpLogRequest, callback func(response *GetOpLogResponse, err error)) <-chan int

GetOpLogWithCallback invokes the dms_enterprise.GetOpLog API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/getoplog.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetOpLogWithChan

func (client *Client) GetOpLogWithChan(request *GetOpLogRequest) (<-chan *GetOpLogResponse, <-chan error)

GetOpLogWithChan invokes the dms_enterprise.GetOpLog API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/getoplog.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) RegisterInstance

func (client *Client) RegisterInstance(request *RegisterInstanceRequest) (response *RegisterInstanceResponse, err error)

RegisterInstance invokes the dms_enterprise.RegisterInstance API synchronously api document: https://help.aliyun.com/api/dms-enterprise/registerinstance.html

func (*Client) RegisterInstanceWithCallback

func (client *Client) RegisterInstanceWithCallback(request *RegisterInstanceRequest, callback func(response *RegisterInstanceResponse, err error)) <-chan int

RegisterInstanceWithCallback invokes the dms_enterprise.RegisterInstance API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/registerinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) RegisterInstanceWithChan

func (client *Client) RegisterInstanceWithChan(request *RegisterInstanceRequest) (<-chan *RegisterInstanceResponse, <-chan error)

RegisterInstanceWithChan invokes the dms_enterprise.RegisterInstance API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/registerinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) RegisterUser

func (client *Client) RegisterUser(request *RegisterUserRequest) (response *RegisterUserResponse, err error)

RegisterUser invokes the dms_enterprise.RegisterUser API synchronously api document: https://help.aliyun.com/api/dms-enterprise/registeruser.html

func (*Client) RegisterUserWithCallback

func (client *Client) RegisterUserWithCallback(request *RegisterUserRequest, callback func(response *RegisterUserResponse, err error)) <-chan int

RegisterUserWithCallback invokes the dms_enterprise.RegisterUser API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/registeruser.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) RegisterUserWithChan

func (client *Client) RegisterUserWithChan(request *RegisterUserRequest) (<-chan *RegisterUserResponse, <-chan error)

RegisterUserWithChan invokes the dms_enterprise.RegisterUser API asynchronously api document: https://help.aliyun.com/api/dms-enterprise/registeruser.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type DeleteUserRequest

type DeleteUserRequest struct {
	*requests.RpcRequest
	Uid requests.Integer `position:"Query" name:"Uid"`
	Tid requests.Integer `position:"Query" name:"Tid"`
}

DeleteUserRequest is the request struct for api DeleteUser

func CreateDeleteUserRequest

func CreateDeleteUserRequest() (request *DeleteUserRequest)

CreateDeleteUserRequest creates a request to invoke DeleteUser API

type DeleteUserResponse

type DeleteUserResponse struct {
	*responses.BaseResponse
	RequestId    string `json:"RequestId" xml:"RequestId"`
	Success      bool   `json:"Success" xml:"Success"`
	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
	ErrorCode    string `json:"ErrorCode" xml:"ErrorCode"`
}

DeleteUserResponse is the response struct for api DeleteUser

func CreateDeleteUserResponse

func CreateDeleteUserResponse() (response *DeleteUserResponse)

CreateDeleteUserResponse creates a response to parse from DeleteUser response

type DisableUserRequest

type DisableUserRequest struct {
	*requests.RpcRequest
	Uid requests.Integer `position:"Query" name:"Uid"`
	Tid requests.Integer `position:"Query" name:"Tid"`
}

DisableUserRequest is the request struct for api DisableUser

func CreateDisableUserRequest

func CreateDisableUserRequest() (request *DisableUserRequest)

CreateDisableUserRequest creates a request to invoke DisableUser API

type DisableUserResponse

type DisableUserResponse struct {
	*responses.BaseResponse
	RequestId    string `json:"RequestId" xml:"RequestId"`
	Success      bool   `json:"Success" xml:"Success"`
	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
	ErrorCode    string `json:"ErrorCode" xml:"ErrorCode"`
}

DisableUserResponse is the response struct for api DisableUser

func CreateDisableUserResponse

func CreateDisableUserResponse() (response *DisableUserResponse)

CreateDisableUserResponse creates a response to parse from DisableUser response

type EnableUserRequest

type EnableUserRequest struct {
	*requests.RpcRequest
	Uid requests.Integer `position:"Query" name:"Uid"`
	Tid requests.Integer `position:"Query" name:"Tid"`
}

EnableUserRequest is the request struct for api EnableUser

func CreateEnableUserRequest

func CreateEnableUserRequest() (request *EnableUserRequest)

CreateEnableUserRequest creates a request to invoke EnableUser API

type EnableUserResponse

type EnableUserResponse struct {
	*responses.BaseResponse
	RequestId    string `json:"RequestId" xml:"RequestId"`
	Success      bool   `json:"Success" xml:"Success"`
	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
	ErrorCode    string `json:"ErrorCode" xml:"ErrorCode"`
}

EnableUserResponse is the response struct for api EnableUser

func CreateEnableUserResponse

func CreateEnableUserResponse() (response *EnableUserResponse)

CreateEnableUserResponse creates a response to parse from EnableUser response

type GetOpLogRequest

type GetOpLogRequest struct {
	*requests.RpcRequest
	Module     string           `position:"Query" name:"Module"`
	PageSize   requests.Integer `position:"Query" name:"PageSize"`
	EndTime    string           `position:"Query" name:"EndTime"`
	StartTime  string           `position:"Query" name:"StartTime"`
	Tid        requests.Integer `position:"Query" name:"Tid"`
	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
}

GetOpLogRequest is the request struct for api GetOpLog

func CreateGetOpLogRequest

func CreateGetOpLogRequest() (request *GetOpLogRequest)

CreateGetOpLogRequest creates a request to invoke GetOpLog API

type GetOpLogResponse

type GetOpLogResponse struct {
	*responses.BaseResponse
	RequestId    string       `json:"RequestId" xml:"RequestId"`
	Success      bool         `json:"Success" xml:"Success"`
	ErrorMessage string       `json:"ErrorMessage" xml:"ErrorMessage"`
	ErrorCode    string       `json:"ErrorCode" xml:"ErrorCode"`
	TotalCount   int          `json:"TotalCount" xml:"TotalCount"`
	OpLogDetails OpLogDetails `json:"OpLogDetails" xml:"OpLogDetails"`
}

GetOpLogResponse is the response struct for api GetOpLog

func CreateGetOpLogResponse

func CreateGetOpLogResponse() (response *GetOpLogResponse)

CreateGetOpLogResponse creates a response to parse from GetOpLog response

type OpLogDetail

type OpLogDetail struct {
	UserId    int    `json:"UserId" xml:"UserId"`
	UserNick  string `json:"UserNick" xml:"UserNick"`
	Module    string `json:"Module" xml:"Module"`
	OpContent string `json:"OpContent" xml:"OpContent"`
	OpTime    string `json:"OpTime" xml:"OpTime"`
	Database  string `json:"Database" xml:"Database"`
	OrderId   int    `json:"OrderId" xml:"OrderId"`
}

OpLogDetail is a nested struct in dms_enterprise response

type OpLogDetails

type OpLogDetails struct {
	OpLogDetail []OpLogDetail `json:"OpLogDetail" xml:"OpLogDetail"`
}

OpLogDetails is a nested struct in dms_enterprise response

type RegisterInstanceRequest

type RegisterInstanceRequest struct {
	*requests.RpcRequest
	EcsInstanceId    string           `position:"Query" name:"EcsInstanceId"`
	EcsRegion        string           `position:"Query" name:"EcsRegion"`
	ExportTimeout    requests.Integer `position:"Query" name:"ExportTimeout"`
	DatabasePassword string           `position:"Query" name:"DatabasePassword"`
	InstanceAlias    string           `position:"Query" name:"InstanceAlias"`
	NetworkType      string           `position:"Query" name:"NetworkType"`
	Tid              requests.Integer `position:"Query" name:"Tid"`
	Sid              string           `position:"Query" name:"Sid"`
	DatabaseUser     string           `position:"Query" name:"DatabaseUser"`
	Port             requests.Integer `position:"Query" name:"Port"`
	VpcId            string           `position:"Query" name:"VpcId"`
	InstanceSource   string           `position:"Query" name:"InstanceSource"`
	EnvType          string           `position:"Query" name:"EnvType"`
	Host             string           `position:"Query" name:"Host"`
	InstanceType     string           `position:"Query" name:"InstanceType"`
	QueryTimeout     requests.Integer `position:"Query" name:"QueryTimeout"`
	DbaUid           requests.Integer `position:"Query" name:"DbaUid"`
	SafeRule         string           `position:"Query" name:"SafeRule"`
}

RegisterInstanceRequest is the request struct for api RegisterInstance

func CreateRegisterInstanceRequest

func CreateRegisterInstanceRequest() (request *RegisterInstanceRequest)

CreateRegisterInstanceRequest creates a request to invoke RegisterInstance API

type RegisterInstanceResponse

type RegisterInstanceResponse struct {
	*responses.BaseResponse
	RequestId    string `json:"RequestId" xml:"RequestId"`
	Success      bool   `json:"Success" xml:"Success"`
	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
	ErrorCode    string `json:"ErrorCode" xml:"ErrorCode"`
}

RegisterInstanceResponse is the response struct for api RegisterInstance

func CreateRegisterInstanceResponse

func CreateRegisterInstanceResponse() (response *RegisterInstanceResponse)

CreateRegisterInstanceResponse creates a response to parse from RegisterInstance response

type RegisterUserRequest

type RegisterUserRequest struct {
	*requests.RpcRequest
	RoleNames string           `position:"Query" name:"RoleNames"`
	Uid       requests.Integer `position:"Query" name:"Uid"`
	UserNick  string           `position:"Query" name:"UserNick"`
	Tid       requests.Integer `position:"Query" name:"Tid"`
}

RegisterUserRequest is the request struct for api RegisterUser

func CreateRegisterUserRequest

func CreateRegisterUserRequest() (request *RegisterUserRequest)

CreateRegisterUserRequest creates a request to invoke RegisterUser API

type RegisterUserResponse

type RegisterUserResponse struct {
	*responses.BaseResponse
	RequestId    string `json:"RequestId" xml:"RequestId"`
	Success      bool   `json:"Success" xml:"Success"`
	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
	ErrorCode    string `json:"ErrorCode" xml:"ErrorCode"`
}

RegisterUserResponse is the response struct for api RegisterUser

func CreateRegisterUserResponse

func CreateRegisterUserResponse() (response *RegisterUserResponse)

CreateRegisterUserResponse creates a response to parse from RegisterUser response

Jump to

Keyboard shortcuts

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