models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: Apache-2.0 Imports: 1 Imported by: 20 modules, 70 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignSecondaryIpsSpec

type AssignSecondaryIpsSpec struct {

	/* secondary ip被其他接口占用时,是否抢占。false:非抢占重分配,true:抢占重分配,默认抢占重分配。默认值:true (Optional) */
	Force bool `json:"force"`

	/* 指定分配的secondaryIp地址 (Optional) */
	SecondaryIps []string `json:"secondaryIps"`

	/* 指定自动分配的secondaryIp个数 (Optional) */
	SecondaryIpCount int `json:"secondaryIpCount"`
}

type AssociateElasticIpSpec

type AssociateElasticIpSpec struct {

	/* 绑定的弹性Ip Id (Optional) */
	ElasticIpId string `json:"elasticIpId"`

	/* 绑定弹性Ip到指定的privateIp (Optional) */
	PrivateIpAddress string `json:"privateIpAddress"`

	/* 绑定的弹性Ip地址 (Optional) */
	ElasticIpAddress string `json:"elasticIpAddress"`
}

type CreateElasticIpSpec

type CreateElasticIpSpec struct {

	/* 购买弹性ip数量;取值范围:[1,100]  */
	MaxCount int `json:"maxCount"`

	/* 指定弹性ip地址进行创建,当申请创建多个弹性ip时,必须为空 (Optional) */
	ElasticIpAddress string `json:"elasticIpAddress"`

	/* 弹性ip规格  */
	ElasticIpSpec ElasticIpSpec `json:"elasticIpSpec"`
}

type CreateVpcPeeringSpec

type CreateVpcPeeringSpec struct {

	/* VpcPeering的名字,不为空。名称取值范围:1-32个中文、英文大小写的字母、数字和下划线分隔符  */
	VpcPeeringName string `json:"vpcPeeringName"`

	/* VpcPeering本端Vpc的Id  */
	VpcId string `json:"vpcId"`

	/* VpcPeering对端Vpc的Id  */
	RemoteVpcId string `json:"remoteVpcId"`

	/* VpcPeering 描述,取值范围:0-256个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
	Description string `json:"description"`
}

type DisassociateElasticIpSpec

type DisassociateElasticIpSpec struct {

	/* 指定解绑的弹性Ip Id (Optional) */
	ElasticIpId string `json:"elasticIpId"`

	/* 指定解绑的弹性Ip地址 (Optional) */
	ElasticIpAddress string `json:"elasticIpAddress"`
}

type ElasticIp

type ElasticIp struct {

	/* 弹性IP的Id (Optional) */
	ElasticIpId string `json:"elasticIpId"`

	/* 弹性IP地址 (Optional) */
	ElasticIpAddress string `json:"elasticIpAddress"`

	/* 弹性ip的限速(单位:Mb) (Optional) */
	BandwidthMbps int `json:"bandwidthMbps"`

	/* IP服务商,取值为bgp或no_bgp (Optional) */
	Provider string `json:"provider"`

	/* 私有IP的IPV4地址 (Optional) */
	PrivateIpAddress string `json:"privateIpAddress"`

	/* 配置弹性网卡Id (Optional) */
	NetworkInterfaceId string `json:"networkInterfaceId"`

	/* 实例Id (Optional) */
	InstanceId string `json:"instanceId"`

	/* 实例类型 (Optional) */
	InstanceType string `json:"instanceType"`

	/* 计费配置 (Optional) */
	Charge Charge `json:"charge"`

	/* 弹性ip创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`
}

type ElasticIpSpec

type ElasticIpSpec struct {

	/* 弹性公网IP的限速(单位:MB),取值范围为[1-200M]  */
	BandwidthMbps int `json:"bandwidthMbps"`

	/* IP服务商,取值为bgp或no_bgp,cn-north-1:bgp;cn-south-1:[bgp,no_bgp];cn-east-1:[bgp,no_bgp];cn-east-2:bgp  */
	Provider string `json:"provider"`

	/* 计费配置 (Optional) */
	ChargeSpec *ChargeSpec `json:"chargeSpec"`
}

type ModifyVpcPeeringSpec

type ModifyVpcPeeringSpec struct {

	/* VpcPeering的名字,不为空。名称取值范围:1-32个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
	VpcPeeringName string `json:"vpcPeeringName"`

	/* VpcPeering 描述,取值范围:0-256个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
	Description string `json:"description"`
}

type NetworkInterface

type NetworkInterface struct {

	/* 弹性网卡ID (Optional) */
	NetworkInterfaceId string `json:"networkInterfaceId"`

	/* 可用区名称 (Optional) */
	Az string `json:"az"`

	/* 以太网地址 (Optional) */
	MacAddress string `json:"macAddress"`

	/* 虚拟网络ID (Optional) */
	VpcId string `json:"vpcId"`

	/* 子网ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 安全组ID列表 (Optional) */
	NetworkSecurityGroupIds []string `json:"networkSecurityGroupIds"`

	/* 源IP地址校验,取值为0或者1 (Optional) */
	SanityCheck int `json:"sanityCheck"`

	/* 网卡主IP (Optional) */
	PrimaryIp NetworkInterfacePrivateIp `json:"primaryIp"`

	/* 网卡附属IP列表 (Optional) */
	SecondaryIps []NetworkInterfacePrivateIp `json:"secondaryIps"`

	/* 关联实例类型,取值范围:vm (Optional) */
	InstanceType string `json:"instanceType"`

	/* 关联实例ID (Optional) */
	InstanceId string `json:"instanceId"`

	/* 弹性网卡创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`
}

type NetworkInterfacePrivateIp

type NetworkInterfacePrivateIp struct {

	/* 私有IP的IPV4地址 (Optional) */
	PrivateIpAddress string `json:"privateIpAddress"`

	/* 弹性IP实例ID (Optional) */
	ElasticIpId string `json:"elasticIpId"`

	/* 弹性IP实例地址 (Optional) */
	ElasticIpAddress string `json:"elasticIpAddress"`
}

type NetworkInterfaceSpec

type NetworkInterfaceSpec struct {

	/* 子网ID  */
	SubnetId string `json:"subnetId"`

	/* 可用区,用户的默认可用区 (Optional) */
	Az *string `json:"az"`

	/* 网卡主私IP (Optional) */
	PrimaryIpAddress *string `json:"primaryIpAddress"`

	/* SecondaryIp列表 (Optional) */
	SecondaryIpAddresses []string `json:"secondaryIpAddresses"`

	/* 自动分配的SecondaryIp数量 (Optional) */
	SecondaryIpCount *int `json:"secondaryIpCount"`

	/* 安全组ID列表 (Optional) */
	SecurityGroups []string `json:"securityGroups"`

	/* 源和目标IP地址校验,取值为0或者1,默认为1 (Optional) */
	SanityCheck *int `json:"sanityCheck"`

	/* 描述 (Optional) */
	Description *string `json:"description"`
}

type NetworkSecurityGroup

type NetworkSecurityGroup struct {

	/* 安全组ID (Optional) */
	NetworkSecurityGroupId string `json:"networkSecurityGroupId"`

	/* 安全组名称 (Optional) */
	NetworkSecurityGroupName string `json:"networkSecurityGroupName"`

	/* 安全组描述信息 (Optional) */
	Description string `json:"description"`

	/* 安全组所在vpc的Id (Optional) */
	VpcId string `json:"vpcId"`

	/* 安全组规则信息 (Optional) */
	SecurityGroupRules []SecurityGroupRule `json:"securityGroupRules"`

	/* 安全组创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`
}

type SecurityGroupRule

type SecurityGroupRule struct {

	/* 安全组规则ID (Optional) */
	RuleId string `json:"ruleId"`

	/* 安全组规则方向。0:入规则; 1:出规则 (Optional) */
	Direction int `json:"direction"`

	/* 规则限定协议。300:All; 6:TCP; 17:UDP; 1:ICMP (Optional) */
	Protocol int `json:"protocol"`

	/* 匹配地址前缀 (Optional) */
	AddressPrefix string `json:"addressPrefix"`

	/* 匹配地址协议版本。4:IPv4;6:IPv6 (Optional) */
	IpVersion int `json:"ipVersion"`

	/* 规则限定起始传输层端口, 默认1 ,若protocal不是传输层协议,恒为0 (Optional) */
	FromPort int `json:"fromPort"`

	/* 规则限定终止传输层端口, 默认1 ,若protocal不是传输层协议,恒为0 (Optional) */
	ToPort int `json:"toPort"`

	/* 安全组规则创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`
}

type Subnet

type Subnet struct {

	/* Subnet的Id (Optional) */
	SubnetId string `json:"subnetId"`

	/* 子网名称 (Optional) */
	SubnetName string `json:"subnetName"`

	/* 子网所属VPC的Id (Optional) */
	VpcId string `json:"vpcId"`

	/* 子网网段,vpc内子网网段不能重叠,cidr的取值范围:10.0.0.0/8、172.16.0.0/12和192.168.0.0/16及它们包含的子网,且子网掩码长度为16-28之间,如果VPC含有Cidr,则必须为VPC所在Cidr的子网 (Optional) */
	AddressPrefix string `json:"addressPrefix"`

	/* 子网可用ip数量 (Optional) */
	AvailableIpCount int `json:"availableIpCount"`

	/* 子网描述信息 (Optional) */
	Description string `json:"description"`

	/* 子网关联的路由表Id (Optional) */
	RouteTableId string `json:"routeTableId"`

	/* 子网关联的acl Id (Optional) */
	AclId string `json:"aclId"`

	/* 子网的起始地址,子网第1个地位为路由器网关保留,第2个地址为dhcp服务保留 (Optional) */
	StartIp string `json:"startIp"`

	/* 子网的结束地址,子网第1个地位为路由器网关保留,第2个地址为dhcp服务保留 (Optional) */
	EndIp string `json:"endIp"`

	/* 子网创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`
}

type UnassignSecondaryIpsSpec

type UnassignSecondaryIpsSpec struct {

	/* 指定删除的secondaryIp地址 (Optional) */
	SecondaryIps []string `json:"secondaryIps"`
}

type Vpc

type Vpc struct {

	/* Vpc的Id (Optional) */
	VpcId string `json:"vpcId"`

	/* 如果为空,则不限制网段,如果不为空,10.0.0.0/8、172.16.0.0/12和192.168.0.0/16及它们包含的子网,且子网掩码长度为16-28之间 (Optional) */
	AddressPrefix string `json:"addressPrefix"`

	/* VPC 描述,取值范围:1~120个字符 (Optional) */
	Description string `json:"description"`

	/* 私有网络名称,取值范围:1-60个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
	VpcName string `json:"vpcName"`

	/*  (Optional) */
	AclIds []string `json:"aclIds"`

	/*  (Optional) */
	RouteTableIds []string `json:"routeTableIds"`

	/* 私有网络包含的子网列表 (Optional) */
	Subnets []Subnet `json:"subnets"`

	/* vpc创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`
}

type VpcPeering

type VpcPeering struct {

	/* VpcPeering的Id (Optional) */
	VpcPeeringId string `json:"vpcPeeringId"`

	/* VpcPeering名称,同账号下不允许重名,取值范围:1-32个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
	VpcPeeringName string `json:"vpcPeeringName"`

	/* 状态,取值为Connected,Disconnected,Initiated (Optional) */
	VpcPeeringState string `json:"vpcPeeringState"`

	/* VpcPeering 描述,可为空值,取值范围:0-256个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
	Description string `json:"description"`

	/* 发起VpcPeering的Vpc信息 (Optional) */
	VpcInfo VpcPeeringVpcInfo `json:"vpcInfo"`

	/* 对端的Vpc信息 (Optional) */
	RemoteVpcInfo VpcPeeringVpcInfo `json:"remoteVpcInfo"`

	/* VpcPeering创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`
}

type VpcPeeringVpcInfo

type VpcPeeringVpcInfo struct {

	/* 子网所属VPC的Id (Optional) */
	VpcId string `json:"vpcId"`

	/* 私有网络名称,取值范围:1-60个中文、英文大小写的字母、数字和下划线分隔符 (Optional) */
	VpcName string `json:"vpcName"`

	/* 如果为空,则不限制网段,如果不为空,10.0.0.0/8、172.16.0.0/12和192.168.0.0/16及它们包含的子网,且子网掩码长度为16-28之间 (Optional) */
	AddressPrefix []string `json:"addressPrefix"`
}

Jump to

Keyboard shortcuts

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