Documentation ¶
Index ¶
- Constants
- func NewParams() openapi.Params
- type API
- func (api API) ActivateInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) CreateInstance(Capacity int64, optional openapi.M) (*CreateInstanceResponse, error)
- func (api API) CreateInstances(Instances string, optional openapi.M) (*CreateInstancesResponse, error)
- func (api API) DataOperate(Command, InstanceId string, optional openapi.M) (*DataOperateResponse, error)
- func (api API) DeactivateInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) DeleteInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) DescribeCommodity(CommodityCode, OrderType string, optional openapi.M) (*DescribeCommodityResponse, error)
- func (api API) DescribeConnectionDomain(optional openapi.M) (*DescribeConnectionDomainResponse, error)
- func (api API) DescribeHistoryMonitorValues(EndTime, InstanceId, IntervalForHistory, StartTime string, optional openapi.M) (*DescribeHistoryMonitorValuesResponse, error)
- func (api API) DescribeInstanceConfig(InstanceId string, optional openapi.M) (*DescribeInstanceConfigResponse, error)
- func (api API) DescribeInstanceCount(optional openapi.M) (*DescribeInstanceCountResponse, error)
- func (api API) DescribeInstances(optional openapi.M) (*DescribeInstancesResponse, error)
- func (api API) DescribeMonitorItems(optional openapi.M) (*DescribeMonitorItemsResponse, error)
- func (api API) DescribeMonitorValues(optional openapi.M) (*DescribeMonitorValuesResponse, error)
- func (api API) DescribePrice(Capacity int64, OrderType string, optional openapi.M) (*DescribePriceResponse, error)
- func (api API) DescribeRegions(optional openapi.M) (*DescribeRegionsResponse, error)
- func (api API) DescribeUserInfo(optional openapi.M) (*DescribeUserInfoResponse, error)
- func (api API) FlushInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) ModifyInstanceAttribute(InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) ModifyInstanceCapacity(Capacity, InstanceId string, optional openapi.M) (*ModifyInstanceCapacityResponse, error)
- func (api API) ModifyInstanceConfig(Config, InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) RenewInstance(InstanceId string, Period int64, optional openapi.M) (*RenewInstanceResponse, error)
- func (api API) TransformToPrePaid(InstanceId string, Period int64, optional openapi.M) (*TransformToPrePaidResponse, error)
- func (api API) VerifyPassword(InstanceId, Password string, optional openapi.M) (*openapi.Response, error)
- type CreateInstanceResponse
- type CreateInstancesResponse
- type DataOperateResponse
- type DescribeCommodityResponse
- type DescribeConnectionDomainResponse
- type DescribeHistoryMonitorValuesResponse
- type DescribeInstanceConfigResponse
- type DescribeInstanceCountResponse
- type DescribeInstancesResponse
- type DescribeMonitorItemsResponse
- type DescribeMonitorValuesResponse
- type DescribePriceResponse
- type DescribeRegionsResponse
- type DescribeUserInfoResponse
- type ModifyInstanceCapacityResponse
- type RenewInstanceResponse
- type TransformToPrePaidResponse
Constants ¶
const ( Product = "R-kvstore" Style = "RPC" Version = "2015-01-01" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
openapi.Service
}
func (API) ActivateInstance ¶
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 ¶
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 ¶
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 ¶
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 ¶
RenewInstanceResponse represents the response of the api RenewInstance.
type TransformToPrePaidResponse ¶
TransformToPrePaidResponse represents the response of the api TransformToPrePaid.