rkvstore

package
v0.0.0-...-0b043e4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Product = "R-kvstore"
	Style   = "RPC"
	Version = "2015-01-01"
)

Variables

This section is empty.

Functions

func NewParams

func NewParams() openapi.Params

Types

type API

type API struct {
	openapi.Service
}

func New

func New(accessKeyId, accessKeySecret string) API

func (API) ActivateInstance

func (api API) ActivateInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)

ActivateInstance version 2015-01-01

required parameters:

name: InstanceId, type: string

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) CreateInstance

func (api API) CreateInstance(Capacity int64, optional openapi.M) (*CreateInstanceResponse, error)

CreateInstance version 2015-01-01

required parameters:

name: Capacity, type: int64

optional parameters:

name: ChargeType, type: string, optional values: PostPaid|PrePaid
name: Config, type: string
name: InstanceName, type: string
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: Password, type: string
name: Period, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: Token, type: string
name: ZoneId, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) CreateInstances

func (api API) CreateInstances(Instances string, optional openapi.M) (*CreateInstancesResponse, error)

CreateInstances version 2015-01-01

required parameters:

name: Instances, type: string

optional parameters:

name: AutoPay, type: bool
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: Token, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DataOperate

func (api API) DataOperate(Command, InstanceId string, optional openapi.M) (*DataOperateResponse, error)

DataOperate version 2015-01-01

required parameters:

name: Command, type: string
name: InstanceId, type: string

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DeactivateInstance

func (api API) DeactivateInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)

DeactivateInstance version 2015-01-01

required parameters:

name: InstanceId, type: string

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DeleteInstance

func (api API) DeleteInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)

DeleteInstance version 2015-01-01

required parameters:

name: InstanceId, type: string

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeCommodity

func (api API) DescribeCommodity(CommodityCode, OrderType string, optional openapi.M) (*DescribeCommodityResponse, error)

DescribeCommodity version 2015-01-01

required parameters:

name: CommodityCode, type: string
name: OrderType, type: string, optional values: BUY|UPGRADE

optional parameters:

name: InstanceId, type: string
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeConnectionDomain

func (api API) DescribeConnectionDomain(optional openapi.M) (*DescribeConnectionDomainResponse, error)

DescribeConnectionDomain version 2015-01-01

optional parameters:

name: ConnectionDomain, type: string
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeHistoryMonitorValues

func (api API) DescribeHistoryMonitorValues(EndTime, InstanceId, IntervalForHistory, StartTime string, optional openapi.M) (*DescribeHistoryMonitorValuesResponse, error)

DescribeHistoryMonitorValues version 2015-01-01

required parameters:

name: EndTime, type: string
name: InstanceId, type: string
name: IntervalForHistory, type: string, optional values: 01m|05m|15m|60m
name: StartTime, type: string

optional parameters:

name: MonitorKeys, type: string
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeInstanceConfig

func (api API) DescribeInstanceConfig(InstanceId string, optional openapi.M) (*DescribeInstanceConfigResponse, error)

DescribeInstanceConfig version 2015-01-01

required parameters:

name: InstanceId, type: string

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeInstanceCount

func (api API) DescribeInstanceCount(optional openapi.M) (*DescribeInstanceCountResponse, error)

DescribeInstanceCount version 2015-01-01

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeInstances

func (api API) DescribeInstances(optional openapi.M) (*DescribeInstancesResponse, error)

DescribeInstances version 2015-01-01

optional parameters:

name: ChargeType, type: string, optional values: PostPaid|PrePaid
name: InstanceIds, type: string
name: InstanceStatus, type: string, optional values: Changing|Creating|Flushing|Inactive|Normal|Released
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: PageNumber, type: int, min value: 1
name: PageSize, type: int, min value: 1, max value: 50
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeMonitorItems

func (api API) DescribeMonitorItems(optional openapi.M) (*DescribeMonitorItemsResponse, error)

DescribeMonitorItems version 2015-01-01

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeMonitorValues

func (api API) DescribeMonitorValues(optional openapi.M) (*DescribeMonitorValuesResponse, error)

DescribeMonitorValues version 2015-01-01

optional parameters:

name: InstanceIds, type: string
name: MonitorKeys, type: string
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribePrice

func (api API) DescribePrice(Capacity int64, OrderType string, optional openapi.M) (*DescribePriceResponse, error)

DescribePrice version 2015-01-01

required parameters:

name: Capacity, type: int64
name: OrderType, type: string, optional values: BUY|UPGRADE

optional parameters:

name: ChargeType, type: string, optional values: PostPaid|PrePaid
name: InstanceId, type: string
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: Period, type: int64
name: Quantity, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: ZoneId, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeRegions

func (api API) DescribeRegions(optional openapi.M) (*DescribeRegionsResponse, error)

DescribeRegions version 2015-01-01

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeUserInfo

func (api API) DescribeUserInfo(optional openapi.M) (*DescribeUserInfoResponse, error)

DescribeUserInfo version 2015-01-01

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) FlushInstance

func (api API) FlushInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)

FlushInstance version 2015-01-01

required parameters:

name: InstanceId, type: string

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) ModifyInstanceAttribute

func (api API) ModifyInstanceAttribute(InstanceId string, optional openapi.M) (*openapi.Response, error)

ModifyInstanceAttribute version 2015-01-01

required parameters:

name: InstanceId, type: string

optional parameters:

name: InstanceName, type: string
name: NewPassword, type: string
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) ModifyInstanceCapacity

func (api API) ModifyInstanceCapacity(Capacity, InstanceId string, optional openapi.M) (*ModifyInstanceCapacityResponse, error)

ModifyInstanceCapacity version 2015-01-01

required parameters:

name: Capacity, type: string
name: InstanceId, type: string

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) ModifyInstanceConfig

func (api API) ModifyInstanceConfig(Config, InstanceId string, optional openapi.M) (*openapi.Response, error)

ModifyInstanceConfig version 2015-01-01

required parameters:

name: Config, type: string
name: InstanceId, type: string

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) RenewInstance

func (api API) RenewInstance(InstanceId string, Period int64, optional openapi.M) (*RenewInstanceResponse, error)

RenewInstance version 2015-01-01

required parameters:

name: InstanceId, type: string
name: Period, type: int64

optional parameters:

name: AutoPay, type: bool
name: Capacity, type: string
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) TransformToPrePaid

func (api API) TransformToPrePaid(InstanceId string, Period int64, optional openapi.M) (*TransformToPrePaidResponse, error)

TransformToPrePaid version 2015-01-01

required parameters:

name: InstanceId, type: string
name: Period, type: int64

optional parameters:

name: AutoPay, type: bool
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) VerifyPassword

func (api API) VerifyPassword(InstanceId, Password string, optional openapi.M) (*openapi.Response, error)

VerifyPassword version 2015-01-01

required parameters:

name: InstanceId, type: string
name: Password, type: string

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Bandwidth        int64
	Capacity         int64
	ChargeType       string
	Config           string
	ConnectionDomain string
	Connections      int64
	EndTime          string
	InstanceId       string
	InstanceName     string
	InstanceStatus   string
	Port             int
	QPS              int64
	RegionId         string
	UserName         string
	ZoneId           string
}

CreateInstanceResponse represents the response of the api CreateInstance.

type CreateInstancesResponse

type CreateInstancesResponse struct {
	OrderId string
}

CreateInstancesResponse represents the response of the api CreateInstances.

type DataOperateResponse

type DataOperateResponse struct {
	CommandResult string
}

DataOperateResponse represents the response of the api DataOperate.

type DescribeCommodityResponse

type DescribeCommodityResponse struct {
	Commodity string
}

DescribeCommodityResponse represents the response of the api DescribeCommodity.

type DescribeConnectionDomainResponse

type DescribeConnectionDomainResponse struct {
	InstanceId string
}

DescribeConnectionDomainResponse represents the response of the api DescribeConnectionDomain.

type DescribeHistoryMonitorValuesResponse

type DescribeHistoryMonitorValuesResponse struct {
	MonitorHistory string
}

DescribeHistoryMonitorValuesResponse represents the response of the api DescribeHistoryMonitorValues.

type DescribeInstanceConfigResponse

type DescribeInstanceConfigResponse struct {
	Config string
}

DescribeInstanceConfigResponse represents the response of the api DescribeInstanceConfig.

type DescribeInstanceCountResponse

type DescribeInstanceCountResponse struct {
	InstancesCount int
}

DescribeInstanceCountResponse represents the response of the api DescribeInstanceCount.

type DescribeInstancesResponse

type DescribeInstancesResponse struct {
	Instances struct {
		KVStoreInstance []struct {
			Bandwidth        int64
			Capacity         int64
			ChargeType       string
			Config           string
			ConnectionDomain string
			Connections      int64
			CreateTime       string
			EndTime          string
			InstanceId       string
			InstanceName     string
			InstanceStatus   string
			Port             int64
			QPS              int64
			RegionId         string
			UserName         string
			ZoneId           string
		}
	}
	PageNumber int
	PageSize   int
	TotalCount int
}

DescribeInstancesResponse represents the response of the api DescribeInstances.

type DescribeMonitorItemsResponse

type DescribeMonitorItemsResponse struct {
	MonitorItems struct {
		KVStoreMonitorItem []struct {
			MonitorKey string
			Unit       string
		}
	}
}

DescribeMonitorItemsResponse represents the response of the api DescribeMonitorItems.

type DescribeMonitorValuesResponse

type DescribeMonitorValuesResponse struct {
	Date        string
	InstanceIds struct {
		KVStoreInstanceMonitor []struct {
			InstanceId  string
			MonitorKeys struct {
				KVStoreMonitorKey []struct {
					MonitorKey string
					Unit       string
					Value      string
				}
			}
		}
	}
}

DescribeMonitorValuesResponse represents the response of the api DescribeMonitorValues.

type DescribePriceResponse

type DescribePriceResponse struct {
	Order struct {
		DiscountAmount float32
		OriginalAmount float32
		TradeAmount    float32
	}
	Rules struct {
		Rule []struct {
			Name       string
			RuleDescId int64
			Title      string
		}
	}
}

DescribePriceResponse represents the response of the api DescribePrice.

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	RegionIds struct {
		KVStoreRegion []struct {
			LocalName string
			RegionId  string
			ZoneIds   string
		}
	}
}

DescribeRegionsResponse represents the response of the api DescribeRegions.

type DescribeUserInfoResponse

type DescribeUserInfoResponse struct {
	AlreadyHasResourceNum struct {
		EcsBought int64
		KVSBought int64
	}
	BalanceAmount    int64
	IsAuthentication bool
	IsFinance        bool
}

DescribeUserInfoResponse represents the response of the api DescribeUserInfo.

type ModifyInstanceCapacityResponse

type ModifyInstanceCapacityResponse struct {
	OrderId string
}

ModifyInstanceCapacityResponse represents the response of the api ModifyInstanceCapacity.

type RenewInstanceResponse

type RenewInstanceResponse struct {
	EndTime string
	OrderId string
}

RenewInstanceResponse represents the response of the api RenewInstance.

type TransformToPrePaidResponse

type TransformToPrePaidResponse struct {
	EndTime string
	OrderId string
}

TransformToPrePaidResponse represents the response of the api TransformToPrePaid.

Jump to

Keyboard shortcuts

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