Documentation ¶
Overview ¶
Package aliyunocs 包含阿里云ocsAPI相关结构体
Index ¶
- type AliyunOcsRegion
- type MKvstorealiyuncscomcreateInstance20150301APIRequest
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetApiMethodName() string
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetApiParams(params url.Values)
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetCapacity() int64
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetInstanceName() string
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetNetworkType() string
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetPassword() string
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetPrivateIpAddress() string
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetRawParams() model.Params
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetRegionId() string
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetToken() string
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetVpcId() string
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetVswitchId() string
- func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetZoneId() string
- func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetCapacity(_capacity int64) error
- func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetInstanceName(_instanceName string) error
- func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetNetworkType(_networkType string) error
- func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetPassword(_password string) error
- func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetPrivateIpAddress(_privateIpAddress string) error
- func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetRegionId(_regionId string) error
- func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetToken(_token string) error
- func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetVpcId(_vpcId string) error
- func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetVswitchId(_vswitchId string) error
- func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetZoneId(_zoneId string) error
- type MKvstorealiyuncscomcreateInstance20150301APIResponse
- type MKvstorealiyuncscomcreateInstance20150301APIResponseModel
- type MKvstorealiyuncscomdescribeRegions20150301APIRequest
- type MKvstorealiyuncscomdescribeRegions20150301APIResponse
- type MKvstorealiyuncscomdescribeRegions20150301APIResponseModel
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 MKvstorealiyuncscomcreateInstance20150301APIRequest ¶ added in v1.3.1
type MKvstorealiyuncscomcreateInstance20150301APIRequest struct { model.Params // contains filtered or unexported fields }
MKvstorealiyuncscomcreateInstance20150301APIRequest 创建OCS实例 API请求 m-kvstore.aliyuncs.com.CreateInstance.2015-03-01
创建OCS实例
func NewMKvstorealiyuncscomcreateInstance20150301Request ¶ added in v1.3.1
func NewMKvstorealiyuncscomcreateInstance20150301Request() *MKvstorealiyuncscomcreateInstance20150301APIRequest
NewMKvstorealiyuncscomcreateInstance20150301Request 初始化MKvstorealiyuncscomcreateInstance20150301APIRequest对象
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetApiMethodName ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetApiParams ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetCapacity ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetCapacity() int64
GetCapacity Capacity Getter
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetInstanceName ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetInstanceName() string
GetInstanceName InstanceName Getter
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetNetworkType ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetNetworkType() string
GetNetworkType NetworkType Getter
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetPassword ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetPassword() string
GetPassword Password Getter
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetPrivateIpAddress ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetPrivateIpAddress() string
GetPrivateIpAddress PrivateIpAddress Getter
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetRawParams ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetRegionId ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetRegionId() string
GetRegionId RegionId Getter
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetToken ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetToken() string
GetToken Token Getter
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetVpcId ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetVpcId() string
GetVpcId VpcId Getter
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetVswitchId ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetVswitchId() string
GetVswitchId VswitchId Getter
func (MKvstorealiyuncscomcreateInstance20150301APIRequest) GetZoneId ¶ added in v1.3.1
func (r MKvstorealiyuncscomcreateInstance20150301APIRequest) GetZoneId() string
GetZoneId ZoneId Getter
func (*MKvstorealiyuncscomcreateInstance20150301APIRequest) SetCapacity ¶ added in v1.3.1
func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetCapacity(_capacity int64) error
SetCapacity is Capacity Setter 说明:实例容量设置单位:MByte输入范围请见OCS规格参数表
func (*MKvstorealiyuncscomcreateInstance20150301APIRequest) SetInstanceName ¶ added in v1.3.1
func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetInstanceName(_instanceName string) error
SetInstanceName is InstanceName Setter 实例昵称长度为2-128个字符,以大小写英文字母或中文开头,不支持字符@/:="<>{[]}和空格
func (*MKvstorealiyuncscomcreateInstance20150301APIRequest) SetNetworkType ¶ added in v1.3.1
func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetNetworkType(_networkType string) error
SetNetworkType is NetworkType Setter OCS实例的网络类型:classic或vpc。默认为classic
func (*MKvstorealiyuncscomcreateInstance20150301APIRequest) SetPassword ¶ added in v1.3.1
func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetPassword(_password string) error
SetPassword is Password Setter 说明:实例密码规则:需同时且只能包含大写字母、小写字母和数字长度8~30个字符
func (*MKvstorealiyuncscomcreateInstance20150301APIRequest) SetPrivateIpAddress ¶ added in v1.3.1
func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetPrivateIpAddress(_privateIpAddress string) error
SetPrivateIpAddress is PrivateIpAddress Setter OCS实例所属vpc内的私网IP地址。当NetworkType参数为vpc时有效。如果不带本参数,则系统通过VpcId和VSwitchId自动分配。如果此参数对应的私网IP地址不在VSwitchId包含的IP地址段内,则创建失败。
func (*MKvstorealiyuncscomcreateInstance20150301APIRequest) SetRegionId ¶ added in v1.3.1
func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetRegionId(_regionId string) error
SetRegionId is RegionId Setter 华东杭州:cn-hangzhou 华北青岛:cn-qingdao
func (*MKvstorealiyuncscomcreateInstance20150301APIRequest) SetToken ¶ added in v1.3.1
func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetToken(_token string) error
SetToken is Token Setter 用于保证幂等性
func (*MKvstorealiyuncscomcreateInstance20150301APIRequest) SetVpcId ¶ added in v1.3.1
func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetVpcId(_vpcId string) error
SetVpcId is VpcId Setter OCS实例所属vpc实例id。如果NetworkType参数为vpc,则本参数为必须。
func (*MKvstorealiyuncscomcreateInstance20150301APIRequest) SetVswitchId ¶ added in v1.3.1
func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetVswitchId(_vswitchId string) error
SetVswitchId is VswitchId Setter OCS实例所属vpc实例的虚拟交换机ID。如果NetworkType参数为vpc,则本参数为必须。
func (*MKvstorealiyuncscomcreateInstance20150301APIRequest) SetZoneId ¶ added in v1.3.1
func (r *MKvstorealiyuncscomcreateInstance20150301APIRequest) SetZoneId(_zoneId string) error
SetZoneId is ZoneId Setter RegionId下级可用区编码
type MKvstorealiyuncscomcreateInstance20150301APIResponse ¶ added in v1.3.1
type MKvstorealiyuncscomcreateInstance20150301APIResponse struct { model.CommonResponse MKvstorealiyuncscomcreateInstance20150301APIResponseModel }
MKvstorealiyuncscomcreateInstance20150301APIResponse 创建OCS实例 API返回值 m-kvstore.aliyuncs.com.CreateInstance.2015-03-01
创建OCS实例
type MKvstorealiyuncscomcreateInstance20150301APIResponseModel ¶ added in v1.3.1
type MKvstorealiyuncscomcreateInstance20150301APIResponseModel 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"` }
MKvstorealiyuncscomcreateInstance20150301APIResponseModel is 创建OCS实例 成功返回结果
type MKvstorealiyuncscomdescribeRegions20150301APIRequest ¶ added in v1.3.1
MKvstorealiyuncscomdescribeRegions20150301APIRequest 查看Region列表 API请求 m-kvstore.aliyuncs.com.DescribeRegions.2015-03-01
查看Region列表
func NewMKvstorealiyuncscomdescribeRegions20150301Request ¶ added in v1.3.1
func NewMKvstorealiyuncscomdescribeRegions20150301Request() *MKvstorealiyuncscomdescribeRegions20150301APIRequest
NewMKvstorealiyuncscomdescribeRegions20150301Request 初始化MKvstorealiyuncscomdescribeRegions20150301APIRequest对象
func (MKvstorealiyuncscomdescribeRegions20150301APIRequest) GetApiMethodName ¶ added in v1.3.1
func (r MKvstorealiyuncscomdescribeRegions20150301APIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (MKvstorealiyuncscomdescribeRegions20150301APIRequest) GetApiParams ¶ added in v1.3.1
func (r MKvstorealiyuncscomdescribeRegions20150301APIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (MKvstorealiyuncscomdescribeRegions20150301APIRequest) GetRawParams ¶ added in v1.3.1
func (r MKvstorealiyuncscomdescribeRegions20150301APIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
type MKvstorealiyuncscomdescribeRegions20150301APIResponse ¶ added in v1.3.1
type MKvstorealiyuncscomdescribeRegions20150301APIResponse struct { model.CommonResponse MKvstorealiyuncscomdescribeRegions20150301APIResponseModel }
MKvstorealiyuncscomdescribeRegions20150301APIResponse 查看Region列表 API返回值 m-kvstore.aliyuncs.com.DescribeRegions.2015-03-01
查看Region列表
type MKvstorealiyuncscomdescribeRegions20150301APIResponseModel ¶ added in v1.3.1
type MKvstorealiyuncscomdescribeRegions20150301APIResponseModel 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"` }
MKvstorealiyuncscomdescribeRegions20150301APIResponseModel is 查看Region列表 成功返回结果