aliyunocs

package
v1.2.3 Latest Latest
Warning

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

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

Documentation

Overview

Package aliyunocs 包含阿里云ocsAPI相关结构体

https://open.taobao.com/API.htm?docId=24698&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunOcsRegion

type AliyunOcsRegion struct {
	// cn-hangzhou
	RegionId string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
	// "B,D"
	ZoneIds string `json:"ZoneIds,omitempty" xml:"ZoneIds,omitempty"`
	// 杭州
	LocalName string `json:"LocalName,omitempty" xml:"LocalName,omitempty"`
}

AliyunOcsRegion 结构体

type M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest added in v1.2.0

type M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest 创建OCS实例 API请求 m-kvstore.aliyuncs.com.CreateInstance.2015-03-01

创建OCS实例

func NewM_kvstoreAliyuncsComCreateInstance2015_03_01Request

func NewM_kvstoreAliyuncsComCreateInstance2015_03_01Request() *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest

NewM_kvstoreAliyuncsComCreateInstance2015_03_01Request 初始化M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest对象

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetCapacity added in v1.2.0

GetCapacity Capacity Getter

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetInstanceName added in v1.2.0

GetInstanceName InstanceName Getter

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetNetworkType added in v1.2.0

GetNetworkType NetworkType Getter

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetPassword added in v1.2.0

GetPassword Password Getter

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetPrivateIpAddress added in v1.2.0

GetPrivateIpAddress PrivateIpAddress Getter

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetRegionId added in v1.2.0

GetRegionId RegionId Getter

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetToken added in v1.2.0

GetToken Token Getter

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetVSwitchId added in v1.2.0

GetVSwitchId VSwitchId Getter

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetVpcId added in v1.2.0

GetVpcId VpcId Getter

func (M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetZoneId added in v1.2.0

GetZoneId ZoneId Getter

func (*M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetCapacity added in v1.2.0

SetCapacity is Capacity Setter 说明:实例容量设置单位:MByte输入范围请见OCS规格参数表

func (*M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetInstanceName added in v1.2.0

func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetInstanceName(_instanceName string) error

SetInstanceName is InstanceName Setter 实例昵称长度为2-128个字符,以大小写英文字母或中文开头,不支持字符@/:="<>{[]}和空格

func (*M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetNetworkType added in v1.2.0

SetNetworkType is NetworkType Setter OCS实例的网络类型:classic或vpc。默认为classic

func (*M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetPassword added in v1.2.0

SetPassword is Password Setter 说明:实例密码规则:需同时且只能包含大写字母、小写字母和数字长度8~30个字符

func (*M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetPrivateIpAddress added in v1.2.0

func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetPrivateIpAddress(_privateIpAddress string) error

SetPrivateIpAddress is PrivateIpAddress Setter OCS实例所属vpc内的私网IP地址。当NetworkType参数为vpc时有效。如果不带本参数,则系统通过VpcId和VSwitchId自动分配。如果此参数对应的私网IP地址不在VSwitchId包含的IP地址段内,则创建失败。

func (*M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetRegionId added in v1.2.0

SetRegionId is RegionId Setter 华东杭州:cn-hangzhou 华北青岛:cn-qingdao

func (*M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetToken added in v1.2.0

SetToken is Token Setter 用于保证幂等性

func (*M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetVSwitchId added in v1.2.0

SetVSwitchId is VSwitchId Setter OCS实例所属vpc实例的虚拟交换机ID。如果NetworkType参数为vpc,则本参数为必须。

func (*M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetVpcId added in v1.2.0

SetVpcId is VpcId Setter OCS实例所属vpc实例id。如果NetworkType参数为vpc,则本参数为必须。

func (*M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetZoneId added in v1.2.0

SetZoneId is ZoneId Setter RegionId下级可用区编码

type M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponse

type M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponse struct {
	model.CommonResponse
	M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponseModel
}

M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponse 创建OCS实例 API返回值 m-kvstore.aliyuncs.com.CreateInstance.2015-03-01

创建OCS实例

type M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponseModel added in v1.2.0

type M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponseModel struct {
	XMLName xml.Name `xml:"m-kvstore_aliyuncs_com_CreateInstance_2015-03-01_response"`
	// OCS例ID;<br/>16位字符串(全局唯一)
	InstanceId string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"`
	// 实例名称
	InstanceName string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// Memcached连接域名<br/>注:仅支持内网
	ConnectionDomain string `json:"ConnectionDomain,omitempty" xml:"ConnectionDomain,omitempty"`
	// Memcached连接用户名<br/>注:取InstanceId的值
	UserName string `json:"UserName,omitempty" xml:"UserName,omitempty"`
	// 使用中:Available<br/>已禁用:Unavailable<br/>创建中:Creating<br/>修改中:Changing
	InstanceStatus string `json:"InstanceStatus,omitempty" xml:"InstanceStatus,omitempty"`
	// cn-hangzhou<br/>cn-qingdao <br/>地域-城市
	RegionId string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
	// 请求唯一标识
	RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// RegionId下级可用区编码
	ZoneId string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"`
	// OCS实例的网络类型
	NetworkType string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"`
	// NetworkType为vpc时OCS实例所属vpc内由用户指定或系统分配的私网IP地址。NetworkType为classic时忽略此返回参数。
	PrivateIpAddress string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"`
	// Memcached连接端口
	Port int64 `json:"Port,omitempty" xml:"Port,omitempty"`
	// 实例容量上限  单位:MByte
	Capacity int64 `json:"Capacity,omitempty" xml:"Capacity,omitempty"`
	// 实例QPS限制<br/>单位:次/秒
	QPS int64 `json:"QPS,omitempty" xml:"QPS,omitempty"`
	// 实例带宽限制<br/>单位:MKbps
	Bandwidth int64 `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"`
	// 实例连接数限制<br/>单位:个
	Connections int64 `json:"Connections,omitempty" xml:"Connections,omitempty"`
}

M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponseModel is 创建OCS实例 成功返回结果

type M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest added in v1.2.0

type M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest struct {
	model.Params
}

M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest 查看Region列表 API请求 m-kvstore.aliyuncs.com.DescribeRegions.2015-03-01

查看Region列表

func NewM_kvstoreAliyuncsComDescribeRegions2015_03_01Request

func NewM_kvstoreAliyuncsComDescribeRegions2015_03_01Request() *M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest

NewM_kvstoreAliyuncsComDescribeRegions2015_03_01Request 初始化M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest对象

func (M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

type M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponse

type M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponse struct {
	model.CommonResponse
	M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponseModel
}

M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponse 查看Region列表 API返回值 m-kvstore.aliyuncs.com.DescribeRegions.2015-03-01

查看Region列表

type M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponseModel added in v1.2.0

type M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponseModel struct {
	XMLName xml.Name `xml:"m-kvstore_aliyuncs_com_DescribeRegions_2015-03-01_response"`
	// RegionIds 为一个 List,里面每个元素由三部分组成【RegionId,LocalName,ZoneIds】,其中ZoneIds是多个值组成的String,多个值间用英文半角“,”分隔。
	RegionIds []AliyunOcsRegion `json:"RegionIds,omitempty" xml:"RegionIds>aliyun_ocs_region,omitempty"`
	// 请求的唯一ID
	RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponseModel is 查看Region列表 成功返回结果

Jump to

Keyboard shortcuts

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