model

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddExtendCidrOption added in v0.0.68

type AddExtendCidrOption struct {

	// 功能说明:扩展cidr列表 取值范围:不能包含以下网段,100.64.0.0/10,214.0.0.0/7,198.18.0.0/15,169.254.0.0/16,0.0.0.0/8,127.0.0.0/8,240.0.0.0/4,172.31.0.0/16,192.168.0.0/16  约束:当前只支持添加一个
	ExtendCidrs []string `json:"extend_cidrs"`
}

func (AddExtendCidrOption) String added in v0.0.68

func (o AddExtendCidrOption) String() string

type AddVpcExtendCidrRequest added in v0.0.68

type AddVpcExtendCidrRequest struct {

	// VPC资源ID
	VpcId string `json:"vpc_id"`

	Body *AddVpcExtendCidrRequestBody `json:"body,omitempty"`
}

Request Object

func (AddVpcExtendCidrRequest) String added in v0.0.68

func (o AddVpcExtendCidrRequest) String() string

type AddVpcExtendCidrRequestBody added in v0.0.68

type AddVpcExtendCidrRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会添加扩展网段。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接添加VPC扩展网段。
	DryRun *bool `json:"dry_run,omitempty"`

	Vpc *AddExtendCidrOption `json:"vpc"`
}

This is a auto create Body Object

func (AddVpcExtendCidrRequestBody) String added in v0.0.68

type AddVpcExtendCidrResponse added in v0.0.68

type AddVpcExtendCidrResponse struct {
	Vpc *Vpc `json:"vpc,omitempty"`

	// 请求ID
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AddVpcExtendCidrResponse) String added in v0.0.68

func (o AddVpcExtendCidrResponse) String() string

type AddressGroup added in v0.0.68

type AddressGroup struct {

	// 功能说明:地址组唯一标识 取值范围:合法UUID的字符串
	Id string `json:"id"`

	// 功能说明:地址组名称 取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:地址组描述信息 取值范围:0-255个字符 约束:不能包含“<”和“>”。
	Description string `json:"description"`

	// 功能说明:地址组可包含地址集 取值范围:可以是单个ip地址,ip地址范围,ip地址cidr 约束:当前一个地址组ip_set数量限制默认值为20,即配置的ip地址、ip地址范围或ip地址cidr的总数默认限制20
	IpSet []string `json:"ip_set"`

	// 功能说明:IP地址组ip版本 取值范围:4, 表示ipv4地址组;6, 表示ipv6地址组
	IpVersion int32 `json:"ip_version"`

	// 功能说明:地址组创建时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss;系统自动生成
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能描述:地址组最近一次更新资源的时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss;系统自动生成
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 功能说明:资源所属项目ID
	TenantId string `json:"tenant_id"`
}

func (AddressGroup) String added in v0.0.68

func (o AddressGroup) String() string

type BatchCreateSubNetworkInterfaceOption

type BatchCreateSubNetworkInterfaceOption struct {

	// 功能说明:虚拟子网ID 取值范围:标准UUID
	VirsubnetId string `json:"virsubnet_id"`

	// 功能说明:宿主网络接口的ID 取值范围:标注UUID 约束:必须是实际存在的端口ID
	ParentId string `json:"parent_id"`

	// 功能说明:安全组的ID列表;例如:\"security_groups\": [\"a0608cbf-d047-4f54-8b28-cd7b59853fff\"] 取值范围:默认值为系统默认安全组
	SecurityGroups *[]string `json:"security_groups,omitempty"`

	// 功能说明:辅助弹性网卡的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`

	// 功能说明:辅助弹性网卡是否启用ipv6地址 取值范围:true(开启),false(关闭) 默认值:false
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	// 功能说明:辅助弹性网卡所属的项目ID 取值范围:标准UUID 约束:只有管理员有权限指定
	ProjectId *string `json:"project_id,omitempty"`
}

func (BatchCreateSubNetworkInterfaceOption) String

type BatchCreateSubNetworkInterfaceRequest

type BatchCreateSubNetworkInterfaceRequest struct {
	Body *BatchCreateSubNetworkInterfaceRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchCreateSubNetworkInterfaceRequest) String

type BatchCreateSubNetworkInterfaceRequestBody

type BatchCreateSubNetworkInterfaceRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会创建辅助弹性网卡。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接创建辅助弹性网卡。
	DryRun *bool `json:"dry_run,omitempty"`

	SubNetworkInterface *BatchCreateSubNetworkInterfaceOption `json:"sub_network_interface"`

	// 批量创建辅助弹性网卡的个数
	Count int32 `json:"count"`
}

This is a auto create Body Object

func (BatchCreateSubNetworkInterfaceRequestBody) String

type BatchCreateSubNetworkInterfaceResponse

type BatchCreateSubNetworkInterfaceResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	// 批量创建辅助弹性网卡的响应体
	SubNetworkInterfaces *[]SubNetworkInterface `json:"sub_network_interfaces,omitempty"`
	HttpStatusCode       int                    `json:"-"`
}

Response Object

func (BatchCreateSubNetworkInterfaceResponse) String

type CloudResource added in v0.0.68

type CloudResource struct {

	// 功能描述:资源类型
	ResourceType string `json:"resource_type"`

	// 功能说明:资源数量
	ResourceCount int32 `json:"resource_count"`
}

func (CloudResource) String added in v0.0.68

func (o CloudResource) String() string

type CreateAddressGroupOption added in v0.0.68

type CreateAddressGroupOption struct {

	// 功能说明:地址组名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:地址组描述信息 取值范围:0-255个字符,不能包含“<”和“>”。
	Description *string `json:"description,omitempty"`

	// 功能说明:地址组ip版本 取值范围:4, 表示ipv4地址组;6,表示ipv6地址组
	IpVersion int32 `json:"ip_version"`

	// 功能说明:地址组可包含地址集 取值范围:可以是单个ip地址,ip地址范围,ip地址cidr 约束:当前一个地址组ip_set数量限制默认值为20,即配置的ip地址、ip地址范围或ip地址cidr的总数默认限制20
	IpSet *[]string `json:"ip_set,omitempty"`
}

func (CreateAddressGroupOption) String added in v0.0.68

func (o CreateAddressGroupOption) String() string

type CreateAddressGroupRequest added in v0.0.68

type CreateAddressGroupRequest struct {
	Body *CreateAddressGroupRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateAddressGroupRequest) String added in v0.0.68

func (o CreateAddressGroupRequest) String() string

type CreateAddressGroupRequestBody added in v0.0.68

type CreateAddressGroupRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会创建地址组。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接创建地址组。
	DryRun *bool `json:"dry_run,omitempty"`

	AddressGroup *CreateAddressGroupOption `json:"address_group"`
}

This is a auto create Body Object

func (CreateAddressGroupRequestBody) String added in v0.0.68

type CreateAddressGroupResponse added in v0.0.68

type CreateAddressGroupResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	AddressGroup   *AddressGroup `json:"address_group,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (CreateAddressGroupResponse) String added in v0.0.68

type CreateSecurityGroupOption

type CreateSecurityGroupOption struct {

	// 功能描述:安全组名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:安全组的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`

	// 功能说明:企业项目ID。创建安全组时,给安全组绑定企业项目ID。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

func (CreateSecurityGroupOption) String

func (o CreateSecurityGroupOption) String() string

type CreateSecurityGroupRequest

type CreateSecurityGroupRequest struct {
	Body *CreateSecurityGroupRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateSecurityGroupRequest) String

type CreateSecurityGroupRequestBody

type CreateSecurityGroupRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会创建安全组。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接创建安全组。
	DryRun *bool `json:"dry_run,omitempty"`

	SecurityGroup *CreateSecurityGroupOption `json:"security_group"`
}

This is a auto create Body Object

func (CreateSecurityGroupRequestBody) String

type CreateSecurityGroupResponse

type CreateSecurityGroupResponse struct {

	// 请求Id
	RequestId *string `json:"request_id,omitempty"`

	SecurityGroup  *SecurityGroupInfo `json:"security_group,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (CreateSecurityGroupResponse) String

type CreateSecurityGroupRuleOption

type CreateSecurityGroupRuleOption struct {

	// 功能说明:安全组规则所属的安全组ID
	SecurityGroupId string `json:"security_group_id"`

	// 功能说明:安全组的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`

	// 功能说明:安全组规则的出入控制方向 取值范围:ingress 表示入方向;egress 表示出方向
	Direction string `json:"direction"`

	// 功能说明:IP地址协议类型 取值范围:IPv4,IPv6 约束:不填默认值为IPv4
	Ethertype *string `json:"ethertype,omitempty"`

	// 功能说明:协议类型 取值范围:icmp、tcp、udp、icmpv6或IP协议号(0~255) 约束:为空表示支持所有协议。协议为icmpv6时,网络类型应该为IPv6;协议为icmp时,网络类型应该为IPv4
	Protocol *string `json:"protocol,omitempty"`

	// 功能说明:端口取值范围 取值范围:支持单端口(80),连续端口(1-30)以及不连续端口(22,3389,80) 约束:端口值的范围1~65535
	Multiport *string `json:"multiport,omitempty"`

	// 功能说明:远端IP地址,当direction是egress时为虚拟机访问端的地址,当direction是ingress时为访问虚拟机的地址 取值范围:IP地址,或者cidr格式 约束:与remote_group_id、remote_address_group_id互斥
	RemoteIpPrefix *string `json:"remote_ip_prefix,omitempty"`

	// 功能说明:远端安全组ID,表示该安全组内的流量允许或拒绝 取值范围:租户下存在的安全组ID 约束:与remote_ip_prefix,remote_address_group_id功能互斥
	RemoteGroupId *string `json:"remote_group_id,omitempty"`

	// 功能说明:远端地址组ID 取值范围:租户下存在的地址组ID 约束:与remote_ip_prefix,remote_group_id功能互斥
	RemoteAddressGroupId *string `json:"remote_address_group_id,omitempty"`

	// 功能说明:安全组规则生效策略 取值范围:allow 允许,deny 拒绝 约束:默认值为allow
	Action *string `json:"action,omitempty"`

	// 功能说明:规则在安全组中的优先级 取值范围:1~100,1代表最高优先级 约束:默认值为100
	Priority *string `json:"priority,omitempty"`
}

func (CreateSecurityGroupRuleOption) String

type CreateSecurityGroupRuleRequest

type CreateSecurityGroupRuleRequest struct {
	Body *CreateSecurityGroupRuleRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateSecurityGroupRuleRequest) String

type CreateSecurityGroupRuleRequestBody

type CreateSecurityGroupRuleRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会创建安全组规则。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接创建安全组规则。
	DryRun *bool `json:"dry_run,omitempty"`

	SecurityGroupRule *CreateSecurityGroupRuleOption `json:"security_group_rule"`
}

This is a auto create Body Object

func (CreateSecurityGroupRuleRequestBody) String

type CreateSecurityGroupRuleResponse

type CreateSecurityGroupRuleResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	SecurityGroupRule *SecurityGroupRule `json:"security_group_rule,omitempty"`
	HttpStatusCode    int                `json:"-"`
}

Response Object

func (CreateSecurityGroupRuleResponse) String

type CreateSubNetworkInterfaceOption

type CreateSubNetworkInterfaceOption struct {

	// 功能说明:虚拟子网ID 取值范围:标准UUID
	VirsubnetId string `json:"virsubnet_id"`

	// 功能说明:辅助弹性网卡的VLAN ID 取值范围:1-4094 约束:同一个宿主网络接口下唯一
	VlanId *string `json:"vlan_id,omitempty"`

	// 功能说明:宿主网络接口的ID 取值范围:标准UUID 约束:必须是实际存在的端口ID
	ParentId string `json:"parent_id"`

	// 功能说明:辅助弹性网卡的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`

	// 功能说明:辅助弹性网卡是否启用ipv6地址 取值范围:true(开启),false(关闭) 默认值:false
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	// 功能说明:辅助弹性网卡的私有IPv4地址 取值范围:必须在虚拟子网的网段内,不填则随机在虚拟子网网段内随机分配
	PrivateIpAddress *string `json:"private_ip_address,omitempty"`

	// 功能说明:辅助弹性网卡的IPv6地址 取值范围:不填则随机分配
	Ipv6IpAddress *string `json:"ipv6_ip_address,omitempty"`

	// 功能说明:安全组的ID列表;例如:\"security_groups\": [\"a0608cbf-d047-4f54-8b28-cd7b59853fff\"] 取值范围:默认值为系统默认安全组
	SecurityGroups *[]string `json:"security_groups,omitempty"`

	// 功能说明:辅助弹性网卡所属的项目ID 取值范围:标准UUID 约束:只有管理员有权限指定
	ProjectId *string `json:"project_id,omitempty"`
}

func (CreateSubNetworkInterfaceOption) String

type CreateSubNetworkInterfaceRequest

type CreateSubNetworkInterfaceRequest struct {
	Body *CreateSubNetworkInterfaceRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateSubNetworkInterfaceRequest) String

type CreateSubNetworkInterfaceRequestBody

type CreateSubNetworkInterfaceRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会创建辅助弹性网卡。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接创建辅助弹性网卡。
	DryRun *bool `json:"dry_run,omitempty"`

	SubNetworkInterface *CreateSubNetworkInterfaceOption `json:"sub_network_interface"`
}

This is a auto create Body Object

func (CreateSubNetworkInterfaceRequestBody) String

type CreateSubNetworkInterfaceResponse

type CreateSubNetworkInterfaceResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	SubNetworkInterface *SubNetworkInterface `json:"sub_network_interface,omitempty"`
	HttpStatusCode      int                  `json:"-"`
}

Response Object

func (CreateSubNetworkInterfaceResponse) String

type CreateVpcOption added in v0.0.68

type CreateVpcOption struct {

	// 功能描述:VPC的名称信息 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:VPC的描述信息 取值范围:0-255个字符,不能包含“<”和“>”。
	Description *string `json:"description,omitempty"`

	// 功能说明:vpc下可用子网的范围 取值范围: −10.0.0.0/8~10.255.255.240/28 −172.16.0.0/12 ~ 172.31.255.240/28 −192.168.0.0/16 ~ 192.168.255.240/28 约束:必须是cidr格式,例如:192.168.0.0/16
	Cidr string `json:"cidr"`

	// 功能说明:企业项目ID。创建vpc时,给vpc绑定企业项目ID。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 功能说明:VPC的标签信息,详情参见Tag对象 取值范围:0-10个标签键值对
	Tags *[]Tag `json:"tags,omitempty"`
}

创建VPC的请求体

func (CreateVpcOption) String added in v0.0.68

func (o CreateVpcOption) String() string

type CreateVpcRequest added in v0.0.68

type CreateVpcRequest struct {
	Body *CreateVpcRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateVpcRequest) String added in v0.0.68

func (o CreateVpcRequest) String() string

type CreateVpcRequestBody added in v0.0.68

type CreateVpcRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会创建VPC。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接创建VPC。
	DryRun *bool `json:"dry_run,omitempty"`

	Vpc *CreateVpcOption `json:"vpc"`
}

This is a auto create Body Object

func (CreateVpcRequestBody) String added in v0.0.68

func (o CreateVpcRequestBody) String() string

type CreateVpcResponse added in v0.0.68

type CreateVpcResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	// 错误消息
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 错误码
	ErrorCode      *string `json:"error_code,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateVpcResponse) String added in v0.0.68

func (o CreateVpcResponse) String() string

type DeleteAddressGroupRequest added in v0.0.68

type DeleteAddressGroupRequest struct {

	// 地址组的唯一标识
	AddressGroupId string `json:"address_group_id"`
}

Request Object

func (DeleteAddressGroupRequest) String added in v0.0.68

func (o DeleteAddressGroupRequest) String() string

type DeleteAddressGroupResponse added in v0.0.68

type DeleteAddressGroupResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteAddressGroupResponse) String added in v0.0.68

type DeleteIpAddressGroupForceRequest added in v0.0.68

type DeleteIpAddressGroupForceRequest struct {

	// IP地址组的唯一标识,要删除的IP地址组ID
	AddressGroupId string `json:"address_group_id"`
}

Request Object

func (DeleteIpAddressGroupForceRequest) String added in v0.0.68

type DeleteIpAddressGroupForceResponse added in v0.0.68

type DeleteIpAddressGroupForceResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteIpAddressGroupForceResponse) String added in v0.0.68

type DeleteSecurityGroupRequest

type DeleteSecurityGroupRequest struct {

	// 安全组资源ID
	SecurityGroupId string `json:"security_group_id"`
}

Request Object

func (DeleteSecurityGroupRequest) String

type DeleteSecurityGroupResponse

type DeleteSecurityGroupResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteSecurityGroupResponse) String

type DeleteSecurityGroupRuleRequest

type DeleteSecurityGroupRuleRequest struct {

	// 安全组规则ID
	SecurityGroupRuleId string `json:"security_group_rule_id"`
}

Request Object

func (DeleteSecurityGroupRuleRequest) String

type DeleteSecurityGroupRuleResponse

type DeleteSecurityGroupRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteSecurityGroupRuleResponse) String

type DeleteSubNetworkInterfaceRequest

type DeleteSubNetworkInterfaceRequest struct {

	// 弹性辅助网卡唯一标识
	SubNetworkInterfaceId string `json:"sub_network_interface_id"`
}

Request Object

func (DeleteSubNetworkInterfaceRequest) String

type DeleteSubNetworkInterfaceResponse

type DeleteSubNetworkInterfaceResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteSubNetworkInterfaceResponse) String

type DeleteVpcRequest added in v0.0.68

type DeleteVpcRequest struct {

	// VPC的资源ID
	VpcId string `json:"vpc_id"`
}

Request Object

func (DeleteVpcRequest) String added in v0.0.68

func (o DeleteVpcRequest) String() string

type DeleteVpcResponse added in v0.0.68

type DeleteVpcResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteVpcResponse) String added in v0.0.68

func (o DeleteVpcResponse) String() string

type ListAddressGroupRequest added in v0.0.68

type ListAddressGroupRequest struct {

	// 功能说明:每页返回的个数 取值范围:0~2000
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 地址组唯一标识,填写后接口按照id进行过滤,支持多ID同时过滤
	Id *[]string `json:"id,omitempty"`

	// 地址组名称,填写后按照名称进行过滤,支持多名称同时过滤
	Name *[]string `json:"name,omitempty"`

	// IP地址组ip版本,当前只支持ipv4,填写后按照ip版本进行过滤
	IpVersion *int32 `json:"ip_version,omitempty"`

	// 地址组描述信息,填写后按照地址组描述信息过滤,支持多描述同时过滤
	Description *[]string `json:"description,omitempty"`
}

Request Object

func (ListAddressGroupRequest) String added in v0.0.68

func (o ListAddressGroupRequest) String() string

type ListAddressGroupResponse added in v0.0.68

type ListAddressGroupResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	// 地址组列表响应体
	AddressGroups *[]AddressGroup `json:"address_groups,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListAddressGroupResponse) String added in v0.0.68

func (o ListAddressGroupResponse) String() string

type ListSecurityGroupRulesRequest

type ListSecurityGroupRulesRequest struct {

	// 功能说明:每页返回个数 取值范围:0-2000
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 功能说明:安全组规则ID,支持多个ID过滤
	Id *[]string `json:"id,omitempty"`

	// 功能说明:安全组规则所属安全组ID,支持多个ID过滤
	SecurityGroupId *[]string `json:"security_group_id,omitempty"`

	// 功能说明:安全组规则协议,支持多条过滤
	Protocol *[]string `json:"protocol,omitempty"`

	// 功能说明:安全组规则的描述,支持多个描述同时过滤
	Description *[]string `json:"description,omitempty"`

	// 功能说明:远端安全组ID,支持多ID过滤
	RemoteGroupId *[]string `json:"remote_group_id,omitempty"`

	// 功能说明:安全组规则方向
	Direction *string `json:"direction,omitempty"`

	// 功能说明:安全组规则生效策略
	Action *string `json:"action,omitempty"`
}

Request Object

func (ListSecurityGroupRulesRequest) String

type ListSecurityGroupRulesResponse

type ListSecurityGroupRulesResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	// 安全组规则列表响应体
	SecurityGroupRules *[]SecurityGroupRule `json:"security_group_rules,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListSecurityGroupRulesResponse) String

type ListSecurityGroupsRequest

type ListSecurityGroupsRequest struct {

	// 功能说明:每页返回的个数 取值范围:0-2000
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 功能说明:安全组资源ID。可以使用该字段精确过滤安全组,支持多个ID
	Id *[]string `json:"id,omitempty"`

	// 功能说明:安全组名称。可以使用该字段精确过滤满足条件的安全组,支持传入多个name过滤
	Name *[]string `json:"name,omitempty"`

	// 功能说明:安全组描述新增。可以使用该字段精确过滤安全组,支持传入多个描述进行过滤
	Description *[]string `json:"description,omitempty"`

	// 功能说明:企业项目ID。可以使用该字段过滤某个企业项目下的安全组。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。 约束:若需要查询当前用户所有有权限查看企业项目绑定的安全组,请传参all_granted_eps。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListSecurityGroupsRequest) String

func (o ListSecurityGroupsRequest) String() string

type ListSecurityGroupsResponse

type ListSecurityGroupsResponse struct {

	// 安全组列表响应体
	SecurityGroups *[]SecurityGroup `json:"security_groups,omitempty"`

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListSecurityGroupsResponse) String

type ListSubNetworkInterfacesRequest

type ListSubNetworkInterfacesRequest struct {

	// 功能说明:每页返回的个数 取值范围:0-2000
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 功能说明:辅助弹性网卡ID,支持多ID过滤 使用场景:查询需要的多个辅助弹性网卡信息
	Id *[]string `json:"id,omitempty"`

	// 功能说明:辅助弹性网卡所属虚拟子网的ID,支持多个ID过滤 使用场景:过滤需要的单个或者多个虚拟子网下的辅助弹性网卡
	VirsubnetId *[]string `json:"virsubnet_id,omitempty"`

	// 功能说明:辅助弹性网卡的私有IPv4地址,支持多个地址同时过滤 使用场景:通过单个或者多个ip地址过滤查询辅助弹性网卡
	PrivateIpAddress *[]string `json:"private_ip_address,omitempty"`

	// 功能说明:辅助弹性网卡的mac地址,支持多个同时过滤 使用场景:使用mac地址精确过滤辅助弹性网卡
	MacAddress *[]string `json:"mac_address,omitempty"`

	// 功能说明:辅助弹性网卡所属的VPC_ID,支持多ID过滤 使用场景:过滤单个或多个VPC下的辅助弹性网卡信息
	VpcId *[]string `json:"vpc_id,omitempty"`

	// 功能说明:辅助弹性网卡的描述信息,支持多个同时过滤 使用场景:通过描述信息过滤辅助弹性网卡
	Description *[]string `json:"description,omitempty"`

	// 功能说明:辅助弹性网卡的宿主网卡的ID,支持多ID过滤 使用场景:过滤单个或多个宿主网卡下存在的辅助弹性网卡
	ParentId *[]string `json:"parent_id,omitempty"`
}

Request Object

func (ListSubNetworkInterfacesRequest) String

type ListSubNetworkInterfacesResponse

type ListSubNetworkInterfacesResponse struct {

	// 1、功能说明:请求ID 2、取值范围:标准UUID 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	RequestId *string `json:"request_id,omitempty"`

	// 1、功能说明:辅助弹性网卡查询对象 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	SubNetworkInterfaces *[]SubNetworkInterface `json:"sub_network_interfaces,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListSubNetworkInterfacesResponse) String

type ListVpcsRequest added in v0.0.68

type ListVpcsRequest struct {

	// 功能说明:每页返回的个数 取值范围:0-2000
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// VPC资源ID。可以使用该字段过滤VPC
	Id *[]string `json:"id,omitempty"`

	// VPC的name信息,可以使用该字段过滤VPC
	Name *[]string `json:"name,omitempty"`

	// VPC的描述信息。可以使用该字段过滤VPC
	Description *[]string `json:"description,omitempty"`

	// VPC的CIDR。可以使用该字段过滤VPC
	Cidr *[]string `json:"cidr,omitempty"`
}

Request Object

func (ListVpcsRequest) String added in v0.0.68

func (o ListVpcsRequest) String() string

type ListVpcsResponse added in v0.0.68

type ListVpcsResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	// VPC列表响应体
	Vpcs *[]Vpc `json:"vpcs,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListVpcsResponse) String added in v0.0.68

func (o ListVpcsResponse) String() string

type MigrateSubNetworkInterfaceOption added in v0.0.68

type MigrateSubNetworkInterfaceOption struct {

	// 目的宿主网卡ID
	ParentId string `json:"parent_id"`

	// 待迁移辅助弹性网卡列表
	SubNetworkInterfaces []map[string]string `json:"sub_network_interfaces"`
}

func (MigrateSubNetworkInterfaceOption) String added in v0.0.68

type MigrateSubNetworkInterfaceRequest added in v0.0.68

type MigrateSubNetworkInterfaceRequest struct {
	Body *MigrateSubNetworkInterfaceRequestBody `json:"body,omitempty"`
}

Request Object

func (MigrateSubNetworkInterfaceRequest) String added in v0.0.68

type MigrateSubNetworkInterfaceRequestBody added in v0.0.68

type MigrateSubNetworkInterfaceRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会创建辅助弹性网卡。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接创建辅助弹性网卡。
	DryRun *bool `json:"dry_run,omitempty"`

	MigrationInfo *MigrateSubNetworkInterfaceOption `json:"migration_info"`
}

This is a auto create Body Object

func (MigrateSubNetworkInterfaceRequestBody) String added in v0.0.68

type MigrateSubNetworkInterfaceResponse added in v0.0.68

type MigrateSubNetworkInterfaceResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	// 批量迁移辅助弹性网卡的响应体
	SubNetworkInterfaces *[]SubNetworkInterface `json:"sub_network_interfaces,omitempty"`
	HttpStatusCode       int                    `json:"-"`
}

Response Object

func (MigrateSubNetworkInterfaceResponse) String added in v0.0.68

type PageInfo

type PageInfo struct {

	// 当前页第一条记录
	PreviousMarker string `json:"previous_marker"`

	// 当前页总数
	CurrentCount int32 `json:"current_count"`

	// 当前页最后一条记录,最后一页时无next_marker字段
	NextMarker *string `json:"next_marker,omitempty"`
}

func (PageInfo) String

func (o PageInfo) String() string

type RemoveExtendCidrOption added in v0.0.68

type RemoveExtendCidrOption struct {

	// 功能说明:移除VPC扩展网段 取值范围:该VPC已经存在的扩展网段 约束:移除扩展网段前,请先清理该VPC下对应cidr范围内的subnet;当前只支持一个一个移除
	ExtendCidrs []string `json:"extend_cidrs"`
}

func (RemoveExtendCidrOption) String added in v0.0.68

func (o RemoveExtendCidrOption) String() string

type RemoveVpcExtendCidrRequest added in v0.0.68

type RemoveVpcExtendCidrRequest struct {

	// VPC资源ID
	VpcId string `json:"vpc_id"`

	Body *RemoveVpcExtendCidrRequestBody `json:"body,omitempty"`
}

Request Object

func (RemoveVpcExtendCidrRequest) String added in v0.0.68

type RemoveVpcExtendCidrRequestBody added in v0.0.68

type RemoveVpcExtendCidrRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会移除VPC扩展网段。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接移除VPC扩展网段。
	DryRun *bool `json:"dry_run,omitempty"`

	Vpc *RemoveExtendCidrOption `json:"vpc"`
}

This is a auto create Body Object

func (RemoveVpcExtendCidrRequestBody) String added in v0.0.68

type RemoveVpcExtendCidrResponse added in v0.0.68

type RemoveVpcExtendCidrResponse struct {
	Vpc *Vpc `json:"vpc,omitempty"`

	// 请求ID
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RemoveVpcExtendCidrResponse) String added in v0.0.68

type SecurityGroup

type SecurityGroup struct {

	// 功能描述:安全组对应的唯一标识 取值范围:带“-”的标准UUID格式
	Id string `json:"id"`

	// 功能说明:安全组名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:安全组的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description string `json:"description"`

	// 功能说明:安全组所属的项目ID
	ProjectId string `json:"project_id"`

	// 功能说明:安全组创建时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:安全组更新时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 功能说明:安全组所属的企业项目ID。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。
	EnterpriseProjectId string `json:"enterprise_project_id"`
}

func (SecurityGroup) String

func (o SecurityGroup) String() string

type SecurityGroupInfo

type SecurityGroupInfo struct {

	// 功能描述:安全组对应的唯一标识 取值范围:带“-”的标准UUID格式
	Id string `json:"id"`

	// 功能说明:安全组名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:安全组的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description string `json:"description"`

	// 功能说明:安全组所属的项目ID
	ProjectId string `json:"project_id"`

	// 功能说明:安全组创建时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:安全组更新时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 功能说明:安全组所属的企业项目ID。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 安全组规则
	SecurityGroupRules []SecurityGroupRule `json:"security_group_rules"`
}

func (SecurityGroupInfo) String

func (o SecurityGroupInfo) String() string

type SecurityGroupRule

type SecurityGroupRule struct {

	// 功能描述:安全组规则对应的唯一标识 取值范围:带“-”的标准UUID格式
	Id string `json:"id"`

	// 功能说明:安全组的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description string `json:"description"`

	// 功能说明:安全组规则所属的安全组ID
	SecurityGroupId string `json:"security_group_id"`

	// 功能说明:安全组规则的出入控制方向 取值范围:ingress 表示入方向;egress 表示出方向
	Direction string `json:"direction"`

	// 功能说明:协议类型 取值范围:icmp、tcp、udp、icmpv6或IP协议号 约束:为空表示支持所有协议。协议为icmpv6时,网络类型应该为IPv6;协议为icmp时,网络类型应该为IPv4
	Protocol string `json:"protocol"`

	// 功能说明:IP地址协议类型 取值范围:IPv4,IPv6 约束:不填默认值为IPv4
	Ethertype string `json:"ethertype"`

	// 功能说明:端口取值范围 取值范围:支持单端口(80),连续端口(1-30)以及不连续端口(22,3389,80)
	Multiport string `json:"multiport"`

	// 功能说明:安全组规则生效策略 取值范围:allow 允许,deny 拒绝 约束:默认值为deny
	Action string `json:"action"`

	// 功能说明:优先级 取值范围:1~100,1代表最高优先级
	Priority int32 `json:"priority"`

	// 功能说明:远端安全组ID,表示该安全组内的流量允许或拒绝 取值范围:租户下存在的安全组ID 约束:与remote_ip_prefix,remote_address_group_id功能互斥
	RemoteGroupId string `json:"remote_group_id"`

	// 功能说明:远端IP地址,当direction是egress时为虚拟机访问端的地址,当direction是ingress时为访问虚拟机的地址 取值范围:IP地址,或者cidr格式 约束:与remote_group_id、remote_address_group_id互斥
	RemoteIpPrefix string `json:"remote_ip_prefix"`

	// 功能说明:远端地址组ID 取值范围:租户下存在的地址组ID 约束:与remote_ip_prefix,remote_group_id功能互斥
	RemoteAddressGroupId string `json:"remote_address_group_id"`

	// 功能说明:安全组规则创建时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:安全组规则更新时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 功能说明:安全组规则所属项目ID
	ProjectId string `json:"project_id"`
}

func (SecurityGroupRule) String

func (o SecurityGroupRule) String() string

type ShowAddressGroupRequest added in v0.0.68

type ShowAddressGroupRequest struct {

	// 地址组的唯一标识
	AddressGroupId string `json:"address_group_id"`
}

Request Object

func (ShowAddressGroupRequest) String added in v0.0.68

func (o ShowAddressGroupRequest) String() string

type ShowAddressGroupResponse added in v0.0.68

type ShowAddressGroupResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	AddressGroup   *AddressGroup `json:"address_group,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowAddressGroupResponse) String added in v0.0.68

func (o ShowAddressGroupResponse) String() string

type ShowSecurityGroupRequest

type ShowSecurityGroupRequest struct {

	// 安全组资源ID
	SecurityGroupId string `json:"security_group_id"`
}

Request Object

func (ShowSecurityGroupRequest) String

func (o ShowSecurityGroupRequest) String() string

type ShowSecurityGroupResponse

type ShowSecurityGroupResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	SecurityGroup  *SecurityGroupInfo `json:"security_group,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ShowSecurityGroupResponse) String

func (o ShowSecurityGroupResponse) String() string

type ShowSecurityGroupRuleRequest

type ShowSecurityGroupRuleRequest struct {

	// 安全组规则ID
	SecurityGroupRuleId string `json:"security_group_rule_id"`
}

Request Object

func (ShowSecurityGroupRuleRequest) String

type ShowSecurityGroupRuleResponse

type ShowSecurityGroupRuleResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	SecurityGroupRule *SecurityGroupRule `json:"security_group_rule,omitempty"`
	HttpStatusCode    int                `json:"-"`
}

Response Object

func (ShowSecurityGroupRuleResponse) String

type ShowSubNetworkInterfaceRequest

type ShowSubNetworkInterfaceRequest struct {

	// 辅助弹性网卡的唯一标识
	SubNetworkInterfaceId string `json:"sub_network_interface_id"`
}

Request Object

func (ShowSubNetworkInterfaceRequest) String

type ShowSubNetworkInterfaceResponse

type ShowSubNetworkInterfaceResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	SubNetworkInterface *SubNetworkInterface `json:"sub_network_interface,omitempty"`
	HttpStatusCode      int                  `json:"-"`
}

Response Object

func (ShowSubNetworkInterfaceResponse) String

type ShowSubNetworkInterfacesQuantityRequest

type ShowSubNetworkInterfacesQuantityRequest struct {
}

Request Object

func (ShowSubNetworkInterfacesQuantityRequest) String

type ShowSubNetworkInterfacesQuantityResponse

type ShowSubNetworkInterfacesQuantityResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	// 辅助弹性网卡数目
	SubNetworkInterfaces *int32 `json:"sub_network_interfaces,omitempty"`
	HttpStatusCode       int    `json:"-"`
}

Response Object

func (ShowSubNetworkInterfacesQuantityResponse) String

type ShowVpcRequest added in v0.0.68

type ShowVpcRequest struct {

	// VPC资源ID
	VpcId string `json:"vpc_id"`
}

Request Object

func (ShowVpcRequest) String added in v0.0.68

func (o ShowVpcRequest) String() string

type ShowVpcResponse added in v0.0.68

type ShowVpcResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	Vpc            *Vpc `json:"vpc,omitempty"`
	HttpStatusCode int  `json:"-"`
}

Response Object

func (ShowVpcResponse) String added in v0.0.68

func (o ShowVpcResponse) String() string

type SubNetworkInterface

type SubNetworkInterface struct {

	// 功能说明:辅助弹性网卡的唯一标识 取值范围:带(-)的标准UUID
	Id string `json:"id"`

	// 功能说明:虚拟子网ID 取值范围:标准UUID
	VirsubnetId string `json:"virsubnet_id"`

	// 功能说明:辅助弹性网卡的私有IPv4地址 取值范围:必须在虚拟子网的网段内,不填则随机在虚拟子网网段内随机分配
	PrivateIpAddress string `json:"private_ip_address"`

	// 功能说明:辅助弹性网卡的IPv6地址
	Ipv6IpAddress string `json:"ipv6_ip_address"`

	// 功能说明:辅助弹性网卡的mac地址 取值范围:合法的mac地址,系统随机分配
	MacAddress string `json:"mac_address"`

	// 功能说明:设备ID 取值范围:标准UUID
	ParentDeviceId string `json:"parent_device_id"`

	// 功能说明:宿主网络接口的ID 取值范围:标准UUID
	ParentId string `json:"parent_id"`

	// 功能说明:辅助弹性网卡的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description string `json:"description"`

	// 功能说明:辅助弹性网卡所属的VPC_ID 取值范围:标准UUID
	VpcId string `json:"vpc_id"`

	// 功能说明:辅助弹性网卡的VLAN ID 取值范围:1-4094 约束:同一个宿主网络接口下唯一
	VlanId int32 `json:"vlan_id"`

	// 功能说明:安全组的ID列表;例如:\"security_groups\": [\"a0608cbf-d047-4f54-8b28-cd7b59853fff\"] 取值范围:默认值为系统默认安全组
	SecurityGroups []string `json:"security_groups"`

	// 功能说明:辅助弹性网卡的标签列表
	Tags []string `json:"tags"`

	// 功能说明:辅助弹性网卡所属项目ID
	ProjectId string `json:"project_id"`

	// 功能说明:辅助弹性网卡的创建时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`
}

func (SubNetworkInterface) String

func (o SubNetworkInterface) String() string

type Tag added in v0.0.68

type Tag struct {

	// 1.功能说明:标签键 2.取值范围:最大长度36个unicode字符。 key不能为空。不能包含非打印字符ASCII(0-31),*,<,>,\\,=
	Key string `json:"key"`

	// 1. 功能描述:标签值 2. 取值范围:每个值最大长度43个unicode字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),*,<,>,\\,=
	Value string `json:"value"`
}

func (Tag) String added in v0.0.68

func (o Tag) String() string

type UpdateAddressGroupOption added in v0.0.68

type UpdateAddressGroupOption struct {

	// 功能说明:地址组名称 取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name *string `json:"name,omitempty"`

	// 功能说明:IP地址组描述信息 取值范围:0-255个字符 约束:不能包含“<”和“>”。
	Description *string `json:"description,omitempty"`

	// 功能说明:IP地址组可包含地址集 取值范围:可以是单个ip地址,ip地址范围,ip地址cidr 约束:当前一个地址组ip_set数量限制默认值为20,即配置的ip地址、ip地址范围或ip地址cidr的总数默认限制20
	IpSet *[]string `json:"ip_set,omitempty"`
}

func (UpdateAddressGroupOption) String added in v0.0.68

func (o UpdateAddressGroupOption) String() string

type UpdateAddressGroupRequest added in v0.0.68

type UpdateAddressGroupRequest struct {

	// 地址组的唯一标识
	AddressGroupId string `json:"address_group_id"`

	Body *UpdateAddressGroupRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateAddressGroupRequest) String added in v0.0.68

func (o UpdateAddressGroupRequest) String() string

type UpdateAddressGroupRequestBody added in v0.0.68

type UpdateAddressGroupRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会更新地址组内容。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接更新地址组。
	DryRun *bool `json:"dry_run,omitempty"`

	AddressGroup *UpdateAddressGroupOption `json:"address_group"`
}

This is a auto create Body Object

func (UpdateAddressGroupRequestBody) String added in v0.0.68

type UpdateAddressGroupResponse added in v0.0.68

type UpdateAddressGroupResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	AddressGroup   *AddressGroup `json:"address_group,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (UpdateAddressGroupResponse) String added in v0.0.68

type UpdateSecurityGroupOption

type UpdateSecurityGroupOption struct {

	// 功能说明:安全组名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name *string `json:"name,omitempty"`

	// 功能说明:安全组描述 取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`
}

func (UpdateSecurityGroupOption) String

func (o UpdateSecurityGroupOption) String() string

type UpdateSecurityGroupRequest

type UpdateSecurityGroupRequest struct {

	// 安全组ID
	SecurityGroupId string `json:"security_group_id"`

	Body *UpdateSecurityGroupRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateSecurityGroupRequest) String

type UpdateSecurityGroupRequestBody

type UpdateSecurityGroupRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会更新安全组。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接更新安全组。
	DryRun *bool `json:"dry_run,omitempty"`

	SecurityGroup *UpdateSecurityGroupOption `json:"security_group"`
}

This is a auto create Body Object

func (UpdateSecurityGroupRequestBody) String

type UpdateSecurityGroupResponse

type UpdateSecurityGroupResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	SecurityGroup  *SecurityGroupInfo `json:"security_group,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (UpdateSecurityGroupResponse) String

type UpdateSubNetworkInterfaceOption

type UpdateSubNetworkInterfaceOption struct {

	// 功能说明:辅助弹性网卡的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`

	// 功能说明:安全组的ID列表;例如:\"security_groups\": [\"a0608cbf-d047-4f54-8b28-cd7b59853fff\"]
	SecurityGroups *[]string `json:"security_groups,omitempty"`
}

func (UpdateSubNetworkInterfaceOption) String

type UpdateSubNetworkInterfaceRequest

type UpdateSubNetworkInterfaceRequest struct {

	// 辅助弹性网卡的唯一标识
	SubNetworkInterfaceId string `json:"sub_network_interface_id"`

	Body *UpdateSubNetworkInterfaceRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateSubNetworkInterfaceRequest) String

type UpdateSubNetworkInterfaceRequestBody

type UpdateSubNetworkInterfaceRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会更新辅助弹性网卡。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接更新辅助弹性网卡。
	DryRun *bool `json:"dry_run,omitempty"`

	SubNetworkInterface *UpdateSubNetworkInterfaceOption `json:"sub_network_interface"`
}

This is a auto create Body Object

func (UpdateSubNetworkInterfaceRequestBody) String

type UpdateSubNetworkInterfaceResponse

type UpdateSubNetworkInterfaceResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	SubNetworkInterface *SubNetworkInterface `json:"sub_network_interface,omitempty"`
	HttpStatusCode      int                  `json:"-"`
}

Response Object

func (UpdateSubNetworkInterfaceResponse) String

type UpdateVpcOption added in v0.0.68

type UpdateVpcOption struct {

	// 功能说明:虚拟私有云名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点) 约束:与description至少选填一个
	Name *string `json:"name,omitempty"`

	// 功能说明:虚拟私有云描述 取值范围:0-255个字符,不能包含“<”和“>”。 约束:与name至少选填一个
	Description *string `json:"description,omitempty"`
}

func (UpdateVpcOption) String added in v0.0.68

func (o UpdateVpcOption) String() string

type UpdateVpcRequest added in v0.0.68

type UpdateVpcRequest struct {

	// VPC资源ID
	VpcId string `json:"vpc_id"`

	Body *UpdateVpcRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateVpcRequest) String added in v0.0.68

func (o UpdateVpcRequest) String() string

type UpdateVpcRequestBody added in v0.0.68

type UpdateVpcRequestBody struct {

	// 功能说明:是否只预检此次请求 取值范围: -true:发送检查请求,不会更新VPC。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应码202。 -false(默认值):发送正常请求,并直接更新VPC。
	DryRun *bool `json:"dry_run,omitempty"`

	Vpc *UpdateVpcOption `json:"vpc"`
}

This is a auto create Body Object

func (UpdateVpcRequestBody) String added in v0.0.68

func (o UpdateVpcRequestBody) String() string

type UpdateVpcResponse added in v0.0.68

type UpdateVpcResponse struct {

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	// 错误消息
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 错误码
	ErrorCode      *string `json:"error_code,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateVpcResponse) String added in v0.0.68

func (o UpdateVpcResponse) String() string

type Vpc added in v0.0.68

type Vpc struct {

	// 功能描述:VPC对应的唯一标识 取值范围:带“-”的UUID格式
	Id string `json:"id"`

	// 功能说明:VPC对应的名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:VPC的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description string `json:"description"`

	// 功能说明:VPC下可用子网的范围 取值范围: - 10.0.0.0/8~10.255.255.240/28 - 172.16.0.0/12 ~ 172.31.255.240/28 - 192.168.0.0/16 ~ 192.168.255.240/28 不指定cidr时,默认值为“” 约束:必须是ipv4 cidr格式,例如:192.168.0.0/16
	Cidr string `json:"cidr"`

	// 功能描述:VPC的扩展网段 取值范围: 约束:目前只支持ipv4
	ExtendCidrs []string `json:"extend_cidrs"`

	// 功能说明:VPC对应的状态 取值范围:PENDING:创建中;ACTIVE:创建成功
	Status string `json:"status"`

	// 功能说明:VPC所属的项目ID
	ProjectId string `json:"project_id"`

	// 功能说明:VPC所属的企业项目ID。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 功能说明:VPC创建时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:VPC更新时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 功能说明:VPC关联资源类型和数量 取值范围:目前只返回VPC关联的routetable和virsubnet
	CloudResources []CloudResource `json:"cloud_resources"`

	// 功能说明:VPC的标签信息,详情参见Tag对象 取值范围:0-10个标签键值对
	Tags []Tag `json:"tags"`
}

func (Vpc) String added in v0.0.68

func (o Vpc) String() string

Source Files

Jump to

Keyboard shortcuts

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