smc

package
v1.62.420 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 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 = "central"

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

func (client *Client) CreateReplicationJob(request *CreateReplicationJobRequest) (response *CreateReplicationJobResponse, err error)

CreateReplicationJob invokes the smc.CreateReplicationJob API synchronously

func (*Client) CreateReplicationJobWithCallback

func (client *Client) CreateReplicationJobWithCallback(request *CreateReplicationJobRequest, callback func(response *CreateReplicationJobResponse, err error)) <-chan int

CreateReplicationJobWithCallback invokes the smc.CreateReplicationJob API asynchronously

func (*Client) CreateReplicationJobWithChan

func (client *Client) CreateReplicationJobWithChan(request *CreateReplicationJobRequest) (<-chan *CreateReplicationJobResponse, <-chan error)

CreateReplicationJobWithChan invokes the smc.CreateReplicationJob API asynchronously

func (*Client) CutOverReplicationJob added in v1.61.1047

func (client *Client) CutOverReplicationJob(request *CutOverReplicationJobRequest) (response *CutOverReplicationJobResponse, err error)

CutOverReplicationJob invokes the smc.CutOverReplicationJob API synchronously

func (*Client) CutOverReplicationJobWithCallback added in v1.61.1047

func (client *Client) CutOverReplicationJobWithCallback(request *CutOverReplicationJobRequest, callback func(response *CutOverReplicationJobResponse, err error)) <-chan int

CutOverReplicationJobWithCallback invokes the smc.CutOverReplicationJob API asynchronously

func (*Client) CutOverReplicationJobWithChan added in v1.61.1047

func (client *Client) CutOverReplicationJobWithChan(request *CutOverReplicationJobRequest) (<-chan *CutOverReplicationJobResponse, <-chan error)

CutOverReplicationJobWithChan invokes the smc.CutOverReplicationJob API asynchronously

func (*Client) DeleteReplicationJob

func (client *Client) DeleteReplicationJob(request *DeleteReplicationJobRequest) (response *DeleteReplicationJobResponse, err error)

DeleteReplicationJob invokes the smc.DeleteReplicationJob API synchronously

func (*Client) DeleteReplicationJobWithCallback

func (client *Client) DeleteReplicationJobWithCallback(request *DeleteReplicationJobRequest, callback func(response *DeleteReplicationJobResponse, err error)) <-chan int

DeleteReplicationJobWithCallback invokes the smc.DeleteReplicationJob API asynchronously

func (*Client) DeleteReplicationJobWithChan

func (client *Client) DeleteReplicationJobWithChan(request *DeleteReplicationJobRequest) (<-chan *DeleteReplicationJobResponse, <-chan error)

DeleteReplicationJobWithChan invokes the smc.DeleteReplicationJob API asynchronously

func (*Client) DeleteSourceServer

func (client *Client) DeleteSourceServer(request *DeleteSourceServerRequest) (response *DeleteSourceServerResponse, err error)

DeleteSourceServer invokes the smc.DeleteSourceServer API synchronously

func (*Client) DeleteSourceServerWithCallback

func (client *Client) DeleteSourceServerWithCallback(request *DeleteSourceServerRequest, callback func(response *DeleteSourceServerResponse, err error)) <-chan int

DeleteSourceServerWithCallback invokes the smc.DeleteSourceServer API asynchronously

func (*Client) DeleteSourceServerWithChan

func (client *Client) DeleteSourceServerWithChan(request *DeleteSourceServerRequest) (<-chan *DeleteSourceServerResponse, <-chan error)

DeleteSourceServerWithChan invokes the smc.DeleteSourceServer API asynchronously

func (*Client) DescribeReplicationJobs

func (client *Client) DescribeReplicationJobs(request *DescribeReplicationJobsRequest) (response *DescribeReplicationJobsResponse, err error)

DescribeReplicationJobs invokes the smc.DescribeReplicationJobs API synchronously

func (*Client) DescribeReplicationJobsWithCallback

func (client *Client) DescribeReplicationJobsWithCallback(request *DescribeReplicationJobsRequest, callback func(response *DescribeReplicationJobsResponse, err error)) <-chan int

DescribeReplicationJobsWithCallback invokes the smc.DescribeReplicationJobs API asynchronously

func (*Client) DescribeReplicationJobsWithChan

func (client *Client) DescribeReplicationJobsWithChan(request *DescribeReplicationJobsRequest) (<-chan *DescribeReplicationJobsResponse, <-chan error)

DescribeReplicationJobsWithChan invokes the smc.DescribeReplicationJobs API asynchronously

func (*Client) DescribeSourceServers

func (client *Client) DescribeSourceServers(request *DescribeSourceServersRequest) (response *DescribeSourceServersResponse, err error)

DescribeSourceServers invokes the smc.DescribeSourceServers API synchronously

func (*Client) DescribeSourceServersWithCallback

func (client *Client) DescribeSourceServersWithCallback(request *DescribeSourceServersRequest, callback func(response *DescribeSourceServersResponse, err error)) <-chan int

DescribeSourceServersWithCallback invokes the smc.DescribeSourceServers API asynchronously

func (*Client) DescribeSourceServersWithChan

func (client *Client) DescribeSourceServersWithChan(request *DescribeSourceServersRequest) (<-chan *DescribeSourceServersResponse, <-chan error)

DescribeSourceServersWithChan invokes the smc.DescribeSourceServers API asynchronously

func (*Client) ListTagResources

func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error)

ListTagResources invokes the smc.ListTagResources API synchronously

func (*Client) ListTagResourcesWithCallback

func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int

ListTagResourcesWithCallback invokes the smc.ListTagResources API asynchronously

func (*Client) ListTagResourcesWithChan

func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error)

ListTagResourcesWithChan invokes the smc.ListTagResources API asynchronously

func (*Client) ModifyReplicationJobAttribute

func (client *Client) ModifyReplicationJobAttribute(request *ModifyReplicationJobAttributeRequest) (response *ModifyReplicationJobAttributeResponse, err error)

ModifyReplicationJobAttribute invokes the smc.ModifyReplicationJobAttribute API synchronously

func (*Client) ModifyReplicationJobAttributeWithCallback

func (client *Client) ModifyReplicationJobAttributeWithCallback(request *ModifyReplicationJobAttributeRequest, callback func(response *ModifyReplicationJobAttributeResponse, err error)) <-chan int

ModifyReplicationJobAttributeWithCallback invokes the smc.ModifyReplicationJobAttribute API asynchronously

func (*Client) ModifyReplicationJobAttributeWithChan

func (client *Client) ModifyReplicationJobAttributeWithChan(request *ModifyReplicationJobAttributeRequest) (<-chan *ModifyReplicationJobAttributeResponse, <-chan error)

ModifyReplicationJobAttributeWithChan invokes the smc.ModifyReplicationJobAttribute API asynchronously

func (*Client) ModifySourceServerAttribute

func (client *Client) ModifySourceServerAttribute(request *ModifySourceServerAttributeRequest) (response *ModifySourceServerAttributeResponse, err error)

ModifySourceServerAttribute invokes the smc.ModifySourceServerAttribute API synchronously

func (*Client) ModifySourceServerAttributeWithCallback

func (client *Client) ModifySourceServerAttributeWithCallback(request *ModifySourceServerAttributeRequest, callback func(response *ModifySourceServerAttributeResponse, err error)) <-chan int

ModifySourceServerAttributeWithCallback invokes the smc.ModifySourceServerAttribute API asynchronously

func (*Client) ModifySourceServerAttributeWithChan

func (client *Client) ModifySourceServerAttributeWithChan(request *ModifySourceServerAttributeRequest) (<-chan *ModifySourceServerAttributeResponse, <-chan error)

ModifySourceServerAttributeWithChan invokes the smc.ModifySourceServerAttribute API asynchronously

func (*Client) StartReplicationJob

func (client *Client) StartReplicationJob(request *StartReplicationJobRequest) (response *StartReplicationJobResponse, err error)

StartReplicationJob invokes the smc.StartReplicationJob API synchronously

func (*Client) StartReplicationJobWithCallback

func (client *Client) StartReplicationJobWithCallback(request *StartReplicationJobRequest, callback func(response *StartReplicationJobResponse, err error)) <-chan int

StartReplicationJobWithCallback invokes the smc.StartReplicationJob API asynchronously

func (*Client) StartReplicationJobWithChan

func (client *Client) StartReplicationJobWithChan(request *StartReplicationJobRequest) (<-chan *StartReplicationJobResponse, <-chan error)

StartReplicationJobWithChan invokes the smc.StartReplicationJob API asynchronously

func (*Client) StopReplicationJob

func (client *Client) StopReplicationJob(request *StopReplicationJobRequest) (response *StopReplicationJobResponse, err error)

StopReplicationJob invokes the smc.StopReplicationJob API synchronously

func (*Client) StopReplicationJobWithCallback

func (client *Client) StopReplicationJobWithCallback(request *StopReplicationJobRequest, callback func(response *StopReplicationJobResponse, err error)) <-chan int

StopReplicationJobWithCallback invokes the smc.StopReplicationJob API asynchronously

func (*Client) StopReplicationJobWithChan

func (client *Client) StopReplicationJobWithChan(request *StopReplicationJobRequest) (<-chan *StopReplicationJobResponse, <-chan error)

StopReplicationJobWithChan invokes the smc.StopReplicationJob API asynchronously

func (*Client) TagResources

func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error)

TagResources invokes the smc.TagResources API synchronously

func (*Client) TagResourcesWithCallback

func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, callback func(response *TagResourcesResponse, err error)) <-chan int

TagResourcesWithCallback invokes the smc.TagResources API asynchronously

func (*Client) TagResourcesWithChan

func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error)

TagResourcesWithChan invokes the smc.TagResources API asynchronously

func (*Client) UntagResources

func (client *Client) UntagResources(request *UntagResourcesRequest) (response *UntagResourcesResponse, err error)

UntagResources invokes the smc.UntagResources API synchronously

func (*Client) UntagResourcesWithCallback

func (client *Client) UntagResourcesWithCallback(request *UntagResourcesRequest, callback func(response *UntagResourcesResponse, err error)) <-chan int

UntagResourcesWithCallback invokes the smc.UntagResources API asynchronously

func (*Client) UntagResourcesWithChan

func (client *Client) UntagResourcesWithChan(request *UntagResourcesRequest) (<-chan *UntagResourcesResponse, <-chan error)

UntagResourcesWithChan invokes the smc.UntagResources API asynchronously

type CreateReplicationJobDataDisk

type CreateReplicationJobDataDisk struct {
	Size  string                      `name:"Size"`
	Part  *[]CreateReplicationJobPart `name:"Part" type:"Repeated"`
	Index string                      `name:"Index"`
}

CreateReplicationJobDataDisk is a repeated param struct in CreateReplicationJobRequest

type CreateReplicationJobPart added in v1.61.631

type CreateReplicationJobPart struct {
	SizeBytes string `name:"SizeBytes"`
	Block     string `name:"Block"`
	Device    string `name:"Device"`
}

CreateReplicationJobPart is a repeated param struct in CreateReplicationJobRequest

type CreateReplicationJobRequest

type CreateReplicationJobRequest struct {
	*requests.RpcRequest
	Frequency              requests.Integer                      `position:"Query" name:"Frequency"`
	ReplicationParameters  string                                `position:"Query" name:"ReplicationParameters"`
	SystemDiskSize         requests.Integer                      `position:"Query" name:"SystemDiskSize"`
	Tag                    *[]CreateReplicationJobTag            `position:"Query" name:"Tag"  type:"Repeated"`
	NetMode                requests.Integer                      `position:"Query" name:"NetMode"`
	LicenseType            string                                `position:"Query" name:"LicenseType"`
	ContainerNamespace     string                                `position:"Query" name:"ContainerNamespace"`
	LaunchTemplateId       string                                `position:"Query" name:"LaunchTemplateId"`
	ValidTime              string                                `position:"Query" name:"ValidTime"`
	OwnerId                requests.Integer                      `position:"Query" name:"OwnerId"`
	VSwitchId              string                                `position:"Query" name:"VSwitchId"`
	ScheduledStartTime     string                                `position:"Query" name:"ScheduledStartTime"`
	InstanceId             string                                `position:"Query" name:"InstanceId"`
	InstanceRamRole        string                                `position:"Query" name:"InstanceRamRole"`
	Name                   string                                `position:"Query" name:"Name"`
	MaxNumberOfImageToKeep requests.Integer                      `position:"Query" name:"MaxNumberOfImageToKeep"`
	TargetType             string                                `position:"Query" name:"TargetType"`
	ClientToken            string                                `position:"Query" name:"ClientToken"`
	Description            string                                `position:"Query" name:"Description"`
	ImageName              string                                `position:"Query" name:"ImageName"`
	InstanceType           string                                `position:"Query" name:"InstanceType"`
	ContainerRepository    string                                `position:"Query" name:"ContainerRepository"`
	ContainerTag           string                                `position:"Query" name:"ContainerTag"`
	SourceId               string                                `position:"Query" name:"SourceId"`
	RunOnce                requests.Boolean                      `position:"Query" name:"RunOnce"`
	ResourceOwnerAccount   string                                `position:"Query" name:"ResourceOwnerAccount"`
	SystemDiskPart         *[]CreateReplicationJobSystemDiskPart `position:"Query" name:"SystemDiskPart"  type:"Repeated"`
	DataDisk               *[]CreateReplicationJobDataDisk       `position:"Query" name:"DataDisk"  type:"Repeated"`
	LaunchTemplateVersion  string                                `position:"Query" name:"LaunchTemplateVersion"`
	VpcId                  string                                `position:"Query" name:"VpcId"`
}

CreateReplicationJobRequest is the request struct for api CreateReplicationJob

func CreateCreateReplicationJobRequest

func CreateCreateReplicationJobRequest() (request *CreateReplicationJobRequest)

CreateCreateReplicationJobRequest creates a request to invoke CreateReplicationJob API

type CreateReplicationJobResponse

type CreateReplicationJobResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	JobId     string `json:"JobId" xml:"JobId"`
}

CreateReplicationJobResponse is the response struct for api CreateReplicationJob

func CreateCreateReplicationJobResponse

func CreateCreateReplicationJobResponse() (response *CreateReplicationJobResponse)

CreateCreateReplicationJobResponse creates a response to parse from CreateReplicationJob response

type CreateReplicationJobSystemDiskPart added in v1.61.631

type CreateReplicationJobSystemDiskPart struct {
	SizeBytes string `name:"SizeBytes"`
	Block     string `name:"Block"`
	Device    string `name:"Device"`
}

CreateReplicationJobSystemDiskPart is a repeated param struct in CreateReplicationJobRequest

type CreateReplicationJobTag

type CreateReplicationJobTag struct {
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

CreateReplicationJobTag is a repeated param struct in CreateReplicationJobRequest

type CutOverReplicationJobRequest added in v1.61.1047

type CutOverReplicationJobRequest struct {
	*requests.RpcRequest
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	JobId                string           `position:"Query" name:"JobId"`
	SyncData             requests.Boolean `position:"Query" name:"SyncData"`
}

CutOverReplicationJobRequest is the request struct for api CutOverReplicationJob

func CreateCutOverReplicationJobRequest added in v1.61.1047

func CreateCutOverReplicationJobRequest() (request *CutOverReplicationJobRequest)

CreateCutOverReplicationJobRequest creates a request to invoke CutOverReplicationJob API

type CutOverReplicationJobResponse added in v1.61.1047

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

CutOverReplicationJobResponse is the response struct for api CutOverReplicationJob

func CreateCutOverReplicationJobResponse added in v1.61.1047

func CreateCutOverReplicationJobResponse() (response *CutOverReplicationJobResponse)

CreateCutOverReplicationJobResponse creates a response to parse from CutOverReplicationJob response

type DataDisk

type DataDisk struct {
	Size  int                            `json:"Size" xml:"Size"`
	Path  string                         `json:"Path" xml:"Path"`
	Index int                            `json:"Index" xml:"Index"`
	Parts PartsInDescribeReplicationJobs `json:"Parts" xml:"Parts"`
}

DataDisk is a nested struct in smc response

type DataDisksInDescribeReplicationJobs

type DataDisksInDescribeReplicationJobs struct {
	DataDisk []DataDisk `json:"DataDisk" xml:"DataDisk"`
}

DataDisksInDescribeReplicationJobs is a nested struct in smc response

type DataDisksInDescribeSourceServers

type DataDisksInDescribeSourceServers struct {
	DataDisk []DataDisk `json:"DataDisk" xml:"DataDisk"`
}

DataDisksInDescribeSourceServers is a nested struct in smc response

type DeleteReplicationJobRequest

type DeleteReplicationJobRequest struct {
	*requests.RpcRequest
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	JobId                string           `position:"Query" name:"JobId"`
}

DeleteReplicationJobRequest is the request struct for api DeleteReplicationJob

func CreateDeleteReplicationJobRequest

func CreateDeleteReplicationJobRequest() (request *DeleteReplicationJobRequest)

CreateDeleteReplicationJobRequest creates a request to invoke DeleteReplicationJob API

type DeleteReplicationJobResponse

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

DeleteReplicationJobResponse is the response struct for api DeleteReplicationJob

func CreateDeleteReplicationJobResponse

func CreateDeleteReplicationJobResponse() (response *DeleteReplicationJobResponse)

CreateDeleteReplicationJobResponse creates a response to parse from DeleteReplicationJob response

type DeleteSourceServerRequest

type DeleteSourceServerRequest struct {
	*requests.RpcRequest
	SourceId             string           `position:"Query" name:"SourceId"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	Force                requests.Boolean `position:"Query" name:"Force"`
}

DeleteSourceServerRequest is the request struct for api DeleteSourceServer

func CreateDeleteSourceServerRequest

func CreateDeleteSourceServerRequest() (request *DeleteSourceServerRequest)

CreateDeleteSourceServerRequest creates a request to invoke DeleteSourceServer API

type DeleteSourceServerResponse

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

DeleteSourceServerResponse is the response struct for api DeleteSourceServer

func CreateDeleteSourceServerResponse

func CreateDeleteSourceServerResponse() (response *DeleteSourceServerResponse)

CreateDeleteSourceServerResponse creates a response to parse from DeleteSourceServer response

type DescribeReplicationJobsRequest

type DescribeReplicationJobsRequest struct {
	*requests.RpcRequest
	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
	JobId                *[]string        `position:"Query" name:"JobId"  type:"Repeated"`
	PageSize             requests.Integer `position:"Query" name:"PageSize"`
	SourceId             *[]string        `position:"Query" name:"SourceId"  type:"Repeated"`
	BusinessStatus       string           `position:"Query" name:"BusinessStatus"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	Name                 string           `position:"Query" name:"Name"`
	Status               string           `position:"Query" name:"Status"`
}

DescribeReplicationJobsRequest is the request struct for api DescribeReplicationJobs

func CreateDescribeReplicationJobsRequest

func CreateDescribeReplicationJobsRequest() (request *DescribeReplicationJobsRequest)

CreateDescribeReplicationJobsRequest creates a request to invoke DescribeReplicationJobs API

type DescribeReplicationJobsResponse

type DescribeReplicationJobsResponse struct {
	*responses.BaseResponse
	RequestId       string          `json:"RequestId" xml:"RequestId"`
	TotalCount      int             `json:"TotalCount" xml:"TotalCount"`
	PageNumber      int             `json:"PageNumber" xml:"PageNumber"`
	PageSize        int             `json:"PageSize" xml:"PageSize"`
	ReplicationJobs ReplicationJobs `json:"ReplicationJobs" xml:"ReplicationJobs"`
}

DescribeReplicationJobsResponse is the response struct for api DescribeReplicationJobs

func CreateDescribeReplicationJobsResponse

func CreateDescribeReplicationJobsResponse() (response *DescribeReplicationJobsResponse)

CreateDescribeReplicationJobsResponse creates a response to parse from DescribeReplicationJobs response

type DescribeSourceServersRequest

type DescribeSourceServersRequest struct {
	*requests.RpcRequest
	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
	JobId                string           `position:"Query" name:"JobId"`
	PageSize             requests.Integer `position:"Query" name:"PageSize"`
	State                string           `position:"Query" name:"State"`
	SourceId             *[]string        `position:"Query" name:"SourceId"  type:"Repeated"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	Name                 string           `position:"Query" name:"Name"`
}

DescribeSourceServersRequest is the request struct for api DescribeSourceServers

func CreateDescribeSourceServersRequest

func CreateDescribeSourceServersRequest() (request *DescribeSourceServersRequest)

CreateDescribeSourceServersRequest creates a request to invoke DescribeSourceServers API

type DescribeSourceServersResponse

type DescribeSourceServersResponse struct {
	*responses.BaseResponse
	RequestId     string        `json:"RequestId" xml:"RequestId"`
	TotalCount    int           `json:"TotalCount" xml:"TotalCount"`
	PageNumber    int           `json:"PageNumber" xml:"PageNumber"`
	PageSize      int           `json:"PageSize" xml:"PageSize"`
	SourceServers SourceServers `json:"SourceServers" xml:"SourceServers"`
}

DescribeSourceServersResponse is the response struct for api DescribeSourceServers

func CreateDescribeSourceServersResponse

func CreateDescribeSourceServersResponse() (response *DescribeSourceServersResponse)

CreateDescribeSourceServersResponse creates a response to parse from DescribeSourceServers response

type ListTagResourcesRequest

type ListTagResourcesRequest struct {
	*requests.RpcRequest
	NextToken            string                 `position:"Query" name:"NextToken"`
	Tag                  *[]ListTagResourcesTag `position:"Query" name:"Tag"  type:"Repeated"`
	ResourceId           *[]string              `position:"Query" name:"ResourceId"  type:"Repeated"`
	ResourceOwnerAccount string                 `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer       `position:"Query" name:"OwnerId"`
	ResourceType         string                 `position:"Query" name:"ResourceType"`
}

ListTagResourcesRequest is the request struct for api ListTagResources

func CreateListTagResourcesRequest

func CreateListTagResourcesRequest() (request *ListTagResourcesRequest)

CreateListTagResourcesRequest creates a request to invoke ListTagResources API

type ListTagResourcesResponse

type ListTagResourcesResponse struct {
	*responses.BaseResponse
	RequestId    string       `json:"RequestId" xml:"RequestId"`
	NextToken    string       `json:"NextToken" xml:"NextToken"`
	TagResources TagResources `json:"TagResources" xml:"TagResources"`
}

ListTagResourcesResponse is the response struct for api ListTagResources

func CreateListTagResourcesResponse

func CreateListTagResourcesResponse() (response *ListTagResourcesResponse)

CreateListTagResourcesResponse creates a response to parse from ListTagResources response

type ListTagResourcesTag

type ListTagResourcesTag struct {
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest

type ModifyReplicationJobAttributeDataDisk

type ModifyReplicationJobAttributeDataDisk struct {
	Size  string                               `name:"Size"`
	Part  *[]ModifyReplicationJobAttributePart `name:"Part" type:"Repeated"`
	Index string                               `name:"Index"`
}

ModifyReplicationJobAttributeDataDisk is a repeated param struct in ModifyReplicationJobAttributeRequest

type ModifyReplicationJobAttributePart added in v1.61.631

type ModifyReplicationJobAttributePart struct {
	SizeBytes string `name:"SizeBytes"`
	Block     string `name:"Block"`
	Device    string `name:"Device"`
}

ModifyReplicationJobAttributePart is a repeated param struct in ModifyReplicationJobAttributeRequest

type ModifyReplicationJobAttributeRequest

type ModifyReplicationJobAttributeRequest struct {
	*requests.RpcRequest
	TargetType             string                                         `position:"Query" name:"TargetType"`
	Description            string                                         `position:"Query" name:"Description"`
	Frequency              requests.Integer                               `position:"Query" name:"Frequency"`
	JobId                  string                                         `position:"Query" name:"JobId"`
	ImageName              string                                         `position:"Query" name:"ImageName"`
	SystemDiskSize         requests.Integer                               `position:"Query" name:"SystemDiskSize"`
	InstanceType           string                                         `position:"Query" name:"InstanceType"`
	ContainerRepository    string                                         `position:"Query" name:"ContainerRepository"`
	ContainerTag           string                                         `position:"Query" name:"ContainerTag"`
	ContainerNamespace     string                                         `position:"Query" name:"ContainerNamespace"`
	LaunchTemplateId       string                                         `position:"Query" name:"LaunchTemplateId"`
	ResourceOwnerAccount   string                                         `position:"Query" name:"ResourceOwnerAccount"`
	SystemDiskPart         *[]ModifyReplicationJobAttributeSystemDiskPart `position:"Query" name:"SystemDiskPart"  type:"Repeated"`
	ValidTime              string                                         `position:"Query" name:"ValidTime"`
	OwnerId                requests.Integer                               `position:"Query" name:"OwnerId"`
	DataDisk               *[]ModifyReplicationJobAttributeDataDisk       `position:"Query" name:"DataDisk"  type:"Repeated"`
	LaunchTemplateVersion  string                                         `position:"Query" name:"LaunchTemplateVersion"`
	ScheduledStartTime     string                                         `position:"Query" name:"ScheduledStartTime"`
	InstanceId             string                                         `position:"Query" name:"InstanceId"`
	InstanceRamRole        string                                         `position:"Query" name:"InstanceRamRole"`
	Name                   string                                         `position:"Query" name:"Name"`
	MaxNumberOfImageToKeep requests.Integer                               `position:"Query" name:"MaxNumberOfImageToKeep"`
}

ModifyReplicationJobAttributeRequest is the request struct for api ModifyReplicationJobAttribute

func CreateModifyReplicationJobAttributeRequest

func CreateModifyReplicationJobAttributeRequest() (request *ModifyReplicationJobAttributeRequest)

CreateModifyReplicationJobAttributeRequest creates a request to invoke ModifyReplicationJobAttribute API

type ModifyReplicationJobAttributeResponse

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

ModifyReplicationJobAttributeResponse is the response struct for api ModifyReplicationJobAttribute

func CreateModifyReplicationJobAttributeResponse

func CreateModifyReplicationJobAttributeResponse() (response *ModifyReplicationJobAttributeResponse)

CreateModifyReplicationJobAttributeResponse creates a response to parse from ModifyReplicationJobAttribute response

type ModifyReplicationJobAttributeSystemDiskPart added in v1.61.631

type ModifyReplicationJobAttributeSystemDiskPart struct {
	SizeBytes string `name:"SizeBytes"`
	Block     string `name:"Block"`
	Device    string `name:"Device"`
}

ModifyReplicationJobAttributeSystemDiskPart is a repeated param struct in ModifyReplicationJobAttributeRequest

type ModifySourceServerAttributeRequest

type ModifySourceServerAttributeRequest struct {
	*requests.RpcRequest
	Description          string           `position:"Query" name:"Description"`
	SourceId             string           `position:"Query" name:"SourceId"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	Name                 string           `position:"Query" name:"Name"`
}

ModifySourceServerAttributeRequest is the request struct for api ModifySourceServerAttribute

func CreateModifySourceServerAttributeRequest

func CreateModifySourceServerAttributeRequest() (request *ModifySourceServerAttributeRequest)

CreateModifySourceServerAttributeRequest creates a request to invoke ModifySourceServerAttribute API

type ModifySourceServerAttributeResponse

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

ModifySourceServerAttributeResponse is the response struct for api ModifySourceServerAttribute

func CreateModifySourceServerAttributeResponse

func CreateModifySourceServerAttributeResponse() (response *ModifySourceServerAttributeResponse)

CreateModifySourceServerAttributeResponse creates a response to parse from ModifySourceServerAttribute response

type Part added in v1.61.631

type Part struct {
	Path      string `json:"Path" xml:"Path"`
	Need      bool   `json:"Need" xml:"Need"`
	CanBlock  bool   `json:"CanBlock" xml:"CanBlock"`
	Device    string `json:"Device" xml:"Device"`
	Block     bool   `json:"Block" xml:"Block"`
	SizeBytes int64  `json:"SizeBytes" xml:"SizeBytes"`
}

Part is a nested struct in smc response

type PartsInDescribeReplicationJobs added in v1.61.631

type PartsInDescribeReplicationJobs struct {
	Part []Part `json:"Part" xml:"Part"`
}

PartsInDescribeReplicationJobs is a nested struct in smc response

type PartsInDescribeSourceServers added in v1.61.631

type PartsInDescribeSourceServers struct {
	Part []Part `json:"Part" xml:"Part"`
}

PartsInDescribeSourceServers is a nested struct in smc response

type ReplicationJob

type ReplicationJob struct {
	JobId                  string                                   `json:"JobId" xml:"JobId"`
	SourceId               string                                   `json:"SourceId" xml:"SourceId"`
	Name                   string                                   `json:"Name" xml:"Name"`
	Description            string                                   `json:"Description" xml:"Description"`
	RegionId               string                                   `json:"RegionId" xml:"RegionId"`
	TargetType             string                                   `json:"TargetType" xml:"TargetType"`
	ScheduledStartTime     string                                   `json:"ScheduledStartTime" xml:"ScheduledStartTime"`
	ImageName              string                                   `json:"ImageName" xml:"ImageName"`
	InstanceId             string                                   `json:"InstanceId" xml:"InstanceId"`
	ImageId                string                                   `json:"ImageId" xml:"ImageId"`
	Status                 string                                   `json:"Status" xml:"Status"`
	BusinessStatus         string                                   `json:"BusinessStatus" xml:"BusinessStatus"`
	ErrorCode              string                                   `json:"ErrorCode" xml:"ErrorCode"`
	Progress               float64                                  `json:"Progress" xml:"Progress"`
	CreationTime           string                                   `json:"CreationTime" xml:"CreationTime"`
	ValidTime              string                                   `json:"ValidTime" xml:"ValidTime"`
	StartTime              string                                   `json:"StartTime" xml:"StartTime"`
	EndTime                string                                   `json:"EndTime" xml:"EndTime"`
	NetMode                int                                      `json:"NetMode" xml:"NetMode"`
	SystemDiskSize         int                                      `json:"SystemDiskSize" xml:"SystemDiskSize"`
	VpcId                  string                                   `json:"VpcId" xml:"VpcId"`
	VSwitchId              string                                   `json:"VSwitchId" xml:"VSwitchId"`
	TransitionInstanceId   string                                   `json:"TransitionInstanceId" xml:"TransitionInstanceId"`
	StatusInfo             string                                   `json:"StatusInfo" xml:"StatusInfo"`
	ReplicationParameters  string                                   `json:"ReplicationParameters" xml:"ReplicationParameters"`
	RunOnce                bool                                     `json:"RunOnce" xml:"RunOnce"`
	Frequency              int                                      `json:"Frequency" xml:"Frequency"`
	MaxNumberOfImageToKeep int                                      `json:"MaxNumberOfImageToKeep" xml:"MaxNumberOfImageToKeep"`
	InstanceType           string                                   `json:"InstanceType" xml:"InstanceType"`
	LaunchTemplateId       string                                   `json:"LaunchTemplateId" xml:"LaunchTemplateId"`
	LaunchTemplateVersion  string                                   `json:"LaunchTemplateVersion" xml:"LaunchTemplateVersion"`
	InstanceRamRole        string                                   `json:"InstanceRamRole" xml:"InstanceRamRole"`
	ContainerNamespace     string                                   `json:"ContainerNamespace" xml:"ContainerNamespace"`
	ContainerRepository    string                                   `json:"ContainerRepository" xml:"ContainerRepository"`
	ContainerTag           string                                   `json:"ContainerTag" xml:"ContainerTag"`
	LicenseType            string                                   `json:"LicenseType" xml:"LicenseType"`
	SystemDiskParts        SystemDiskPartsInDescribeReplicationJobs `json:"SystemDiskParts" xml:"SystemDiskParts"`
	DataDisks              DataDisksInDescribeReplicationJobs       `json:"DataDisks" xml:"DataDisks"`
	ReplicationJobRuns     ReplicationJobRuns                       `json:"ReplicationJobRuns" xml:"ReplicationJobRuns"`
}

ReplicationJob is a nested struct in smc response

type ReplicationJobRun

type ReplicationJobRun struct {
	ImageId   string `json:"ImageId" xml:"ImageId"`
	Type      string `json:"Type" xml:"Type"`
	StartTime string `json:"StartTime" xml:"StartTime"`
	EndTime   string `json:"EndTime" xml:"EndTime"`
}

ReplicationJobRun is a nested struct in smc response

type ReplicationJobRuns

type ReplicationJobRuns struct {
	ReplicationJobRun []ReplicationJobRun `json:"ReplicationJobRun" xml:"ReplicationJobRun"`
}

ReplicationJobRuns is a nested struct in smc response

type ReplicationJobs

type ReplicationJobs struct {
	ReplicationJob []ReplicationJob `json:"ReplicationJob" xml:"ReplicationJob"`
}

ReplicationJobs is a nested struct in smc response

type SourceServer

type SourceServer struct {
	SourceId          string                                 `json:"SourceId" xml:"SourceId"`
	JobId             string                                 `json:"JobId" xml:"JobId"`
	AgentVersion      string                                 `json:"AgentVersion" xml:"AgentVersion"`
	Name              string                                 `json:"Name" xml:"Name"`
	Description       string                                 `json:"Description" xml:"Description"`
	KernelLevel       int                                    `json:"KernelLevel" xml:"KernelLevel"`
	Platform          string                                 `json:"Platform" xml:"Platform"`
	Architecture      string                                 `json:"Architecture" xml:"Architecture"`
	SystemDiskSize    int                                    `json:"SystemDiskSize" xml:"SystemDiskSize"`
	ReplicationDriver string                                 `json:"ReplicationDriver" xml:"ReplicationDriver"`
	SystemInfo        string                                 `json:"SystemInfo" xml:"SystemInfo"`
	CreationTime      string                                 `json:"CreationTime" xml:"CreationTime"`
	State             string                                 `json:"State" xml:"State"`
	ErrorCode         string                                 `json:"ErrorCode" xml:"ErrorCode"`
	StatusInfo        string                                 `json:"StatusInfo" xml:"StatusInfo"`
	HeartbeatRate     int                                    `json:"HeartbeatRate" xml:"HeartbeatRate"`
	DataDisks         DataDisksInDescribeSourceServers       `json:"DataDisks" xml:"DataDisks"`
	SystemDiskParts   SystemDiskPartsInDescribeSourceServers `json:"SystemDiskParts" xml:"SystemDiskParts"`
}

SourceServer is a nested struct in smc response

type SourceServers

type SourceServers struct {
	SourceServer []SourceServer `json:"SourceServer" xml:"SourceServer"`
}

SourceServers is a nested struct in smc response

type StartReplicationJobRequest

type StartReplicationJobRequest struct {
	*requests.RpcRequest
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	JobId                string           `position:"Query" name:"JobId"`
}

StartReplicationJobRequest is the request struct for api StartReplicationJob

func CreateStartReplicationJobRequest

func CreateStartReplicationJobRequest() (request *StartReplicationJobRequest)

CreateStartReplicationJobRequest creates a request to invoke StartReplicationJob API

type StartReplicationJobResponse

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

StartReplicationJobResponse is the response struct for api StartReplicationJob

func CreateStartReplicationJobResponse

func CreateStartReplicationJobResponse() (response *StartReplicationJobResponse)

CreateStartReplicationJobResponse creates a response to parse from StartReplicationJob response

type StopReplicationJobRequest

type StopReplicationJobRequest struct {
	*requests.RpcRequest
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	JobId                string           `position:"Query" name:"JobId"`
}

StopReplicationJobRequest is the request struct for api StopReplicationJob

func CreateStopReplicationJobRequest

func CreateStopReplicationJobRequest() (request *StopReplicationJobRequest)

CreateStopReplicationJobRequest creates a request to invoke StopReplicationJob API

type StopReplicationJobResponse

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

StopReplicationJobResponse is the response struct for api StopReplicationJob

func CreateStopReplicationJobResponse

func CreateStopReplicationJobResponse() (response *StopReplicationJobResponse)

CreateStopReplicationJobResponse creates a response to parse from StopReplicationJob response

type SystemDiskPart added in v1.61.631

type SystemDiskPart struct {
	Path      string `json:"Path" xml:"Path"`
	Need      bool   `json:"Need" xml:"Need"`
	CanBlock  bool   `json:"CanBlock" xml:"CanBlock"`
	Device    string `json:"Device" xml:"Device"`
	Block     bool   `json:"Block" xml:"Block"`
	SizeBytes int64  `json:"SizeBytes" xml:"SizeBytes"`
}

SystemDiskPart is a nested struct in smc response

type SystemDiskPartsInDescribeReplicationJobs added in v1.61.631

type SystemDiskPartsInDescribeReplicationJobs struct {
	SystemDiskPart []SystemDiskPart `json:"SystemDiskPart" xml:"SystemDiskPart"`
}

SystemDiskPartsInDescribeReplicationJobs is a nested struct in smc response

type SystemDiskPartsInDescribeSourceServers added in v1.61.631

type SystemDiskPartsInDescribeSourceServers struct {
	SystemDiskPart []SystemDiskPart `json:"SystemDiskPart" xml:"SystemDiskPart"`
}

SystemDiskPartsInDescribeSourceServers is a nested struct in smc response

type TagResource

type TagResource struct {
	ResourceType string `json:"ResourceType" xml:"ResourceType"`
	ResourceId   string `json:"ResourceId" xml:"ResourceId"`
	TagKey       string `json:"TagKey" xml:"TagKey"`
	TagValue     string `json:"TagValue" xml:"TagValue"`
}

TagResource is a nested struct in smc response

type TagResources

type TagResources struct {
	TagResource []TagResource `json:"TagResource" xml:"TagResource"`
}

TagResources is a nested struct in smc response

type TagResourcesRequest

type TagResourcesRequest struct {
	*requests.RpcRequest
	Tag                  *[]TagResourcesTag `position:"Query" name:"Tag"  type:"Repeated"`
	ResourceId           *[]string          `position:"Query" name:"ResourceId"  type:"Repeated"`
	ResourceOwnerAccount string             `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer   `position:"Query" name:"OwnerId"`
	ResourceType         string             `position:"Query" name:"ResourceType"`
}

TagResourcesRequest is the request struct for api TagResources

func CreateTagResourcesRequest

func CreateTagResourcesRequest() (request *TagResourcesRequest)

CreateTagResourcesRequest creates a request to invoke TagResources API

type TagResourcesResponse

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

TagResourcesResponse is the response struct for api TagResources

func CreateTagResourcesResponse

func CreateTagResourcesResponse() (response *TagResourcesResponse)

CreateTagResourcesResponse creates a response to parse from TagResources response

type TagResourcesTag

type TagResourcesTag struct {
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

TagResourcesTag is a repeated param struct in TagResourcesRequest

type UntagResourcesRequest

type UntagResourcesRequest struct {
	*requests.RpcRequest
	All                  requests.Boolean `position:"Query" name:"All"`
	ResourceId           *[]string        `position:"Query" name:"ResourceId"  type:"Repeated"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	ResourceType         string           `position:"Query" name:"ResourceType"`
	TagKey               *[]string        `position:"Query" name:"TagKey"  type:"Repeated"`
}

UntagResourcesRequest is the request struct for api UntagResources

func CreateUntagResourcesRequest

func CreateUntagResourcesRequest() (request *UntagResourcesRequest)

CreateUntagResourcesRequest creates a request to invoke UntagResources API

type UntagResourcesResponse

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

UntagResourcesResponse is the response struct for api UntagResources

func CreateUntagResourcesResponse

func CreateUntagResourcesResponse() (response *UntagResourcesResponse)

CreateUntagResourcesResponse creates a response to parse from UntagResources response

Jump to

Keyboard shortcuts

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