model

package
v0.0.26-beta Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 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 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 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 DeleteSecurityGroupRequest

type DeleteSecurityGroupRequest struct {
	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 {
	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 ListSecurityGroupRulesRequest

type ListSecurityGroupRulesRequest struct {
	Limit           *int32    `json:"limit,omitempty"`
	Marker          *string   `json:"marker,omitempty"`
	Id              *[]string `json:"id,omitempty"`
	SecurityGroupId *[]string `json:"security_group_id,omitempty"`
	Protocol        *[]string `json:"protocol,omitempty"`
	Description     *[]string `json:"description,omitempty"`
	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 {
	Limit               *int32    `json:"limit,omitempty"`
	Marker              *string   `json:"marker,omitempty"`
	Id                  *[]string `json:"id,omitempty"`
	Name                *[]string `json:"name,omitempty"`
	Description         *[]string `json:"description,omitempty"`
	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 {
	Limit            *int32    `json:"limit,omitempty"`
	Marker           *string   `json:"marker,omitempty"`
	Id               *[]string `json:"id,omitempty"`
	VirsubnetId      *[]string `json:"virsubnet_id,omitempty"`
	PrivateIpAddress *[]string `json:"private_ip_address,omitempty"`
	MacAddress       *[]string `json:"mac_address,omitempty"`
	VpcId            *[]string `json:"vpc_id,omitempty"`
	Description      *[]string `json:"description,omitempty"`
	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 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 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 ShowSecurityGroupRequest

type ShowSecurityGroupRequest struct {
	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 {
	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 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 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 {
	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

Source Files

Jump to

Keyboard shortcuts

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