model

package
v0.1.90 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 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"`
}

AddExtendCidrOption

func (AddExtendCidrOption) String added in v0.0.68

func (o AddExtendCidrOption) String() string

type AddFirewallRulesRequest added in v0.1.56

type AddFirewallRulesRequest struct {

	// 网络ACL的唯一标识
	FirewallId string `json:"firewall_id"`

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

AddFirewallRulesRequest Request Object

func (AddFirewallRulesRequest) String added in v0.1.56

func (o AddFirewallRulesRequest) String() string

type AddFirewallRulesRequestBody added in v0.1.56

type AddFirewallRulesRequestBody struct {
	Firewall *FirewallInsertRuleOption `json:"firewall"`
}

AddFirewallRulesRequestBody This is a auto create Body Object

func (AddFirewallRulesRequestBody) String added in v0.1.56

type AddFirewallRulesResponse added in v0.1.56

type AddFirewallRulesResponse struct {
	Firewall *FirewallDetail `json:"firewall,omitempty"`

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

AddFirewallRulesResponse Response Object

func (AddFirewallRulesResponse) String added in v0.1.56

func (o AddFirewallRulesResponse) String() string

type AddSecurityGroupsRequest added in v0.1.63

type AddSecurityGroupsRequest struct {

	// 端口的唯一标识
	PortId string `json:"port_id"`

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

AddSecurityGroupsRequest Request Object

func (AddSecurityGroupsRequest) String added in v0.1.63

func (o AddSecurityGroupsRequest) String() string

type AddSecurityGroupsRequestBody added in v0.1.63

type AddSecurityGroupsRequestBody struct {
	Port *InsertSecurityGroupOption `json:"port"`
}

AddSecurityGroupsRequestBody This is a auto create Body Object

func (AddSecurityGroupsRequestBody) String added in v0.1.63

type AddSecurityGroupsResponse added in v0.1.63

type AddSecurityGroupsResponse struct {

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

	Port           *Port `json:"port,omitempty"`
	HttpStatusCode int   `json:"-"`
}

AddSecurityGroupsResponse Response Object

func (AddSecurityGroupsResponse) String added in v0.1.63

func (o AddSecurityGroupsResponse) String() string

type AddSourcesToTrafficMirrorSessionRequest added in v0.1.61

type AddSourcesToTrafficMirrorSessionRequest struct {

	// 流量镜像会话ID
	TrafficMirrorSessionId string `json:"traffic_mirror_session_id"`

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

AddSourcesToTrafficMirrorSessionRequest Request Object

func (AddSourcesToTrafficMirrorSessionRequest) String added in v0.1.61

type AddSourcesToTrafficMirrorSessionRequestBody added in v0.1.61

type AddSourcesToTrafficMirrorSessionRequestBody struct {
	TrafficMirrorSession *TrafficMirrorSourcesOption `json:"traffic_mirror_session"`
}

AddSourcesToTrafficMirrorSessionRequestBody

func (AddSourcesToTrafficMirrorSessionRequestBody) String added in v0.1.61

type AddSourcesToTrafficMirrorSessionResponse added in v0.1.61

type AddSourcesToTrafficMirrorSessionResponse struct {
	TrafficMirrorSession *TrafficMirrorSession `json:"traffic_mirror_session,omitempty"`

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

AddSourcesToTrafficMirrorSessionResponse Response Object

func (AddSourcesToTrafficMirrorSessionResponse) String added in v0.1.61

type AddVpcExtendCidrRequest added in v0.0.68

type AddVpcExtendCidrRequest struct {

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

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

AddVpcExtendCidrRequest 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"`
}

AddVpcExtendCidrRequestBody 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:"-"`
}

AddVpcExtendCidrResponse 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"`

	// 功能说明:地址组最大条目数,限制地址组可以包含的地址数量 取值范围:0-20 默认值:20
	MaxCapacity int32 `json:"max_capacity"`

	// 功能说明:地址组可包含地址集 取值范围:可以是单个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"`

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

	// IP地址组资源标签
	Tags []ResourceTag `json:"tags"`

	// 功能说明:地址组状态 取值范围:       NORMAL:正常       UPDATING:更新中       UPDATE_FAILED:更新失败 默认值:NORMAL 约束:当地址组处于UPDATING(更新中)状态时,不允许再次更新
	Status string `json:"status"`

	// 功能说明:地址组状态详情信息
	StatusMessage string `json:"status_message"`

	// 功能说明:地址组包含的地址集及其备注信息
	IpExtraSet []IpExtraSetRespOption `json:"ip_extra_set"`
}

func (AddressGroup) String added in v0.0.68

func (o AddressGroup) String() string

type AllowedAddressPair added in v0.1.63

type AllowedAddressPair struct {

	// 功能说明:IP地址约束:不支持0.0.0.0如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组。
	IpAddress *string `json:"ip_address,omitempty"`

	// 功能说明:MAC地址
	MacAddress *string `json:"mac_address,omitempty"`
}

AllowedAddressPair

func (AllowedAddressPair) String added in v0.1.63

func (o AllowedAddressPair) String() string

type AssociateSubnetFirewallRequest added in v0.1.56

type AssociateSubnetFirewallRequest struct {

	// 网络ACL唯一标识
	FirewallId string `json:"firewall_id"`

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

AssociateSubnetFirewallRequest Request Object

func (AssociateSubnetFirewallRequest) String added in v0.1.56

type AssociateSubnetFirewallRequestBody added in v0.1.56

type AssociateSubnetFirewallRequestBody struct {

	// 绑定ACL的子网列表
	Subnets []FirewallAssociation `json:"subnets"`
}

AssociateSubnetFirewallRequestBody This is a auto create Body Object

func (AssociateSubnetFirewallRequestBody) String added in v0.1.56

type AssociateSubnetFirewallResponse added in v0.1.56

type AssociateSubnetFirewallResponse struct {
	Firewall *FirewallDetail `json:"firewall,omitempty"`

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

AssociateSubnetFirewallResponse Response Object

func (AssociateSubnetFirewallResponse) String added in v0.1.56

type BatchCreateSecurityGroupRulesOption added in v0.1.62

type BatchCreateSecurityGroupRulesOption struct {

	// 功能说明:安全组的描述信息 取值范围: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代表最高优先级 约束:默认值为1
	Priority *string `json:"priority,omitempty"`
}

BatchCreateSecurityGroupRulesOption

func (BatchCreateSecurityGroupRulesOption) String added in v0.1.62

type BatchCreateSecurityGroupRulesRequest added in v0.1.62

type BatchCreateSecurityGroupRulesRequest struct {

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

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

BatchCreateSecurityGroupRulesRequest Request Object

func (BatchCreateSecurityGroupRulesRequest) String added in v0.1.62

type BatchCreateSecurityGroupRulesRequestBody added in v0.1.62

type BatchCreateSecurityGroupRulesRequestBody struct {

	// 待创建的安全组规则列表
	SecurityGroupRules []BatchCreateSecurityGroupRulesOption `json:"security_group_rules"`

	// 创建时是否忽略重复的安全组规则 默认为false
	IgnoreDuplicate *bool `json:"ignore_duplicate,omitempty"`

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

BatchCreateSecurityGroupRulesRequestBody This is a auto create Body Object

func (BatchCreateSecurityGroupRulesRequestBody) String added in v0.1.62

type BatchCreateSecurityGroupRulesResponse added in v0.1.62

type BatchCreateSecurityGroupRulesResponse struct {

	// 批量创建安全组规则的响应体
	SecurityGroupRules *[]SecurityGroupRule `json:"security_group_rules,omitempty"`

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

BatchCreateSecurityGroupRulesResponse Response Object

func (BatchCreateSecurityGroupRulesResponse) String added in v0.1.62

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"`
}

BatchCreateSubNetworkInterfaceOption

func (BatchCreateSubNetworkInterfaceOption) String

type BatchCreateSubNetworkInterfaceRequest

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

BatchCreateSubNetworkInterfaceRequest 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"`
}

BatchCreateSubNetworkInterfaceRequestBody 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:"-"`
}

BatchCreateSubNetworkInterfaceResponse 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"`
}

CloudResource

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"`

	// 功能说明:地址组最大条目数,限制地址组可以包含的地址数量 取值范围:0-20 默认值:20
	MaxCapacity *int32 `json:"max_capacity,omitempty"`

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

	// 功能说明:IP地址组包含的IP列表及其备注信息 约束:ip数量限制默认20, 与ip_set参数只能二选一
	IpExtraSet *[]IpExtraSetOption `json:"ip_extra_set,omitempty"`
}

CreateAddressGroupOption

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"`
}

CreateAddressGroupRequest 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"`
}

CreateAddressGroupRequestBody 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:"-"`
}

CreateAddressGroupResponse Response Object

func (CreateAddressGroupResponse) String added in v0.0.68

type CreateFirewallOption added in v0.1.56

type CreateFirewallOption struct {

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

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

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

	// 功能说明:ACL是否开启,默认值true 取值范围:true表示ACL开启;false表示ACL关闭
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
}

CreateFirewallOption

func (CreateFirewallOption) String added in v0.1.56

func (o CreateFirewallOption) String() string

type CreateFirewallRequest added in v0.1.56

type CreateFirewallRequest struct {
	Body *CreateFirewallRequestBody `json:"body,omitempty"`
}

CreateFirewallRequest Request Object

func (CreateFirewallRequest) String added in v0.1.56

func (o CreateFirewallRequest) String() string

type CreateFirewallRequestBody added in v0.1.56

type CreateFirewallRequestBody struct {
	Firewall *CreateFirewallOption `json:"firewall"`

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

CreateFirewallRequestBody This is a auto create Body Object

func (CreateFirewallRequestBody) String added in v0.1.56

func (o CreateFirewallRequestBody) String() string

type CreateFirewallResponse added in v0.1.56

type CreateFirewallResponse struct {
	Firewall *FirewallDetail `json:"firewall,omitempty"`

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

CreateFirewallResponse Response Object

func (CreateFirewallResponse) String added in v0.1.56

func (o CreateFirewallResponse) String() 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"`
}

CreateSecurityGroupOption

func (CreateSecurityGroupOption) String

func (o CreateSecurityGroupOption) String() string

type CreateSecurityGroupRequest

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

CreateSecurityGroupRequest Request Object

func (CreateSecurityGroupRequest) String

type CreateSecurityGroupRequestBody

type CreateSecurityGroupRequestBody struct {

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

	SecurityGroup *CreateSecurityGroupOption `json:"security_group"`
}

CreateSecurityGroupRequestBody 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:"-"`
}

CreateSecurityGroupResponse 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"`
}

CreateSecurityGroupRuleOption

func (CreateSecurityGroupRuleOption) String

type CreateSecurityGroupRuleRequest

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

CreateSecurityGroupRuleRequest 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"`
}

CreateSecurityGroupRuleRequestBody 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:"-"`
}

CreateSecurityGroupRuleResponse 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"`
}

CreateSubNetworkInterfaceOption

func (CreateSubNetworkInterfaceOption) String

type CreateSubNetworkInterfaceRequest

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

CreateSubNetworkInterfaceRequest 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"`
}

CreateSubNetworkInterfaceRequestBody 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:"-"`
}

CreateSubNetworkInterfaceResponse Response Object

func (CreateSubNetworkInterfaceResponse) String

type CreateTrafficMirrorFilterOption added in v0.1.61

type CreateTrafficMirrorFilterOption struct {

	// 功能说明:流量镜像筛选条件的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`

	// 功能说明:流量镜像筛选条件的名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`
}

CreateTrafficMirrorFilterOption

func (CreateTrafficMirrorFilterOption) String added in v0.1.61

type CreateTrafficMirrorFilterRequest added in v0.1.61

type CreateTrafficMirrorFilterRequest struct {
	Body *CreateTrafficMirrorFilterRequestBody `json:"body,omitempty"`
}

CreateTrafficMirrorFilterRequest Request Object

func (CreateTrafficMirrorFilterRequest) String added in v0.1.61

type CreateTrafficMirrorFilterRequestBody added in v0.1.61

type CreateTrafficMirrorFilterRequestBody struct {
	TrafficMirrorFilter *CreateTrafficMirrorFilterOption `json:"traffic_mirror_filter"`
}

CreateTrafficMirrorFilterRequestBody

func (CreateTrafficMirrorFilterRequestBody) String added in v0.1.61

type CreateTrafficMirrorFilterResponse added in v0.1.61

type CreateTrafficMirrorFilterResponse struct {
	TrafficMirrorFilter *TrafficMirrorFilter `json:"traffic_mirror_filter,omitempty"`

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

CreateTrafficMirrorFilterResponse Response Object

func (CreateTrafficMirrorFilterResponse) String added in v0.1.61

type CreateTrafficMirrorFilterRuleOption added in v0.1.61

type CreateTrafficMirrorFilterRuleOption struct {

	// 功能说明:端口镜像筛选规则的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`

	// 功能说明:流量镜像筛选条件ID
	TrafficMirrorFilterId string `json:"traffic_mirror_filter_id"`

	// 功能说明:流量方向 取值范围:     ingress:入方向     egress:出方向
	Direction string `json:"direction"`

	// 功能说明:镜像流量的协议类型 取值范围:TCP、UDP、ICMP、ICMPV6、ALL
	Protocol string `json:"protocol"`

	// 功能说明:镜像流量的地址协议版本 取值范围:IPv4,IPv6
	Ethertype string `json:"ethertype"`

	// 功能说明:镜像流量的源网段
	SourceCidrBlock *string `json:"source_cidr_block,omitempty"`

	// 功能说明:镜像流量的目的网段
	DestinationCidrBlock *string `json:"destination_cidr_block,omitempty"`

	// 功能说明:流量源端口范围 取值范围:1~65535 格式:80-200
	SourcePortRange *string `json:"source_port_range,omitempty"`

	// 功能说明:流量目的端口范围 取值范围:1~65535 格式:80-200
	DestinationPortRange *string `json:"destination_port_range,omitempty"`

	// 功能说明:镜像策略 取值范围:accept(采集)、reject(不采集)
	Action string `json:"action"`

	// 功能说明:镜像规则优先级 取值范围:1~65535,数字越小,优先级越高
	Priority int32 `json:"priority"`
}

CreateTrafficMirrorFilterRuleOption

func (CreateTrafficMirrorFilterRuleOption) String added in v0.1.61

type CreateTrafficMirrorFilterRuleRequest added in v0.1.61

type CreateTrafficMirrorFilterRuleRequest struct {
	Body *CreateTrafficMirrorFilterRuleRequestBody `json:"body,omitempty"`
}

CreateTrafficMirrorFilterRuleRequest Request Object

func (CreateTrafficMirrorFilterRuleRequest) String added in v0.1.61

type CreateTrafficMirrorFilterRuleRequestBody added in v0.1.61

type CreateTrafficMirrorFilterRuleRequestBody struct {
	TrafficMirrorFilterRule *CreateTrafficMirrorFilterRuleOption `json:"traffic_mirror_filter_rule"`
}

CreateTrafficMirrorFilterRuleRequestBody

func (CreateTrafficMirrorFilterRuleRequestBody) String added in v0.1.61

type CreateTrafficMirrorFilterRuleResponse added in v0.1.61

type CreateTrafficMirrorFilterRuleResponse struct {
	TrafficMirrorFilterRule *TrafficMirrorFilterRule `json:"traffic_mirror_filter_rule,omitempty"`

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

CreateTrafficMirrorFilterRuleResponse Response Object

func (CreateTrafficMirrorFilterRuleResponse) String added in v0.1.61

type CreateTrafficMirrorSessionOption added in v0.1.61

type CreateTrafficMirrorSessionOption struct {

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

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

	// 功能说明:流量镜像筛选条件ID
	TrafficMirrorFilterId string `json:"traffic_mirror_filter_id"`

	// 功能说明:镜像源ID列表,支持弹性网卡作为镜像源。 约束:一个镜像会话默认最大支持10个镜像源。
	TrafficMirrorSources []string `json:"traffic_mirror_sources"`

	// 功能说明:镜像目的ID
	TrafficMirrorTargetId string `json:"traffic_mirror_target_id"`

	// 功能说明:镜像目的类型 取值范围:     eni:弹性网卡     elb:私网弹性负载均衡
	TrafficMirrorTargetType string `json:"traffic_mirror_target_type"`

	// 功能说明:指定VNI,用于区分不同会话的镜像流量 取值范围:0~16777215 默认值:1
	VirtualNetworkId *string `json:"virtual_network_id,omitempty"`

	// 功能说明:最大传输单元MTU 取值范围:1~1460 默认值:96
	PacketLength *string `json:"packet_length,omitempty"`

	// 功能说明:会话优先级 取值范围:1~32766
	Priority int32 `json:"priority"`

	// 功能说明:是否开启会话 取值范围:true、false 默认值:false
	Enabled *string `json:"enabled,omitempty"`

	// 功能说明:支持的镜像源类型 取值范围:     eni:弹性网卡
	Type *string `json:"type,omitempty"`
}

CreateTrafficMirrorSessionOption

func (CreateTrafficMirrorSessionOption) String added in v0.1.61

type CreateTrafficMirrorSessionRequest added in v0.1.61

type CreateTrafficMirrorSessionRequest struct {
	Body *CreateTrafficMirrorSessionRequestBody `json:"body,omitempty"`
}

CreateTrafficMirrorSessionRequest Request Object

func (CreateTrafficMirrorSessionRequest) String added in v0.1.61

type CreateTrafficMirrorSessionRequestBody added in v0.1.61

type CreateTrafficMirrorSessionRequestBody struct {
	TrafficMirrorSession *CreateTrafficMirrorSessionOption `json:"traffic_mirror_session"`
}

CreateTrafficMirrorSessionRequestBody

func (CreateTrafficMirrorSessionRequestBody) String added in v0.1.61

type CreateTrafficMirrorSessionResponse added in v0.1.61

type CreateTrafficMirrorSessionResponse struct {
	TrafficMirrorSession *TrafficMirrorSession `json:"traffic_mirror_session,omitempty"`

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

CreateTrafficMirrorSessionResponse Response Object

func (CreateTrafficMirrorSessionResponse) String added in v0.1.61

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"`
}

CreateVpcOption 创建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"`
}

CreateVpcRequest 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"`
}

CreateVpcRequestBody 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:"-"`
}

CreateVpcResponse 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"`
}

DeleteAddressGroupRequest 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:"-"`
}

DeleteAddressGroupResponse Response Object

func (DeleteAddressGroupResponse) String added in v0.0.68

type DeleteFirewallRequest added in v0.1.56

type DeleteFirewallRequest struct {

	// 网络ACL唯一标识
	FirewallId string `json:"firewall_id"`
}

DeleteFirewallRequest Request Object

func (DeleteFirewallRequest) String added in v0.1.56

func (o DeleteFirewallRequest) String() string

type DeleteFirewallResponse added in v0.1.56

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

DeleteFirewallResponse Response Object

func (DeleteFirewallResponse) String added in v0.1.56

func (o DeleteFirewallResponse) String() string

type DeleteIpAddressGroupForceRequest added in v0.0.68

type DeleteIpAddressGroupForceRequest struct {

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

DeleteIpAddressGroupForceRequest Request Object

func (DeleteIpAddressGroupForceRequest) String added in v0.0.68

type DeleteIpAddressGroupForceResponse added in v0.0.68

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

DeleteIpAddressGroupForceResponse Response Object

func (DeleteIpAddressGroupForceResponse) String added in v0.0.68

type DeleteSecurityGroupRequest

type DeleteSecurityGroupRequest struct {

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

DeleteSecurityGroupRequest Request Object

func (DeleteSecurityGroupRequest) String

type DeleteSecurityGroupResponse

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

DeleteSecurityGroupResponse Response Object

func (DeleteSecurityGroupResponse) String

type DeleteSecurityGroupRuleRequest

type DeleteSecurityGroupRuleRequest struct {

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

DeleteSecurityGroupRuleRequest Request Object

func (DeleteSecurityGroupRuleRequest) String

type DeleteSecurityGroupRuleResponse

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

DeleteSecurityGroupRuleResponse Response Object

func (DeleteSecurityGroupRuleResponse) String

type DeleteSubNetworkInterfaceRequest

type DeleteSubNetworkInterfaceRequest struct {

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

DeleteSubNetworkInterfaceRequest Request Object

func (DeleteSubNetworkInterfaceRequest) String

type DeleteSubNetworkInterfaceResponse

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

DeleteSubNetworkInterfaceResponse Response Object

func (DeleteSubNetworkInterfaceResponse) String

type DeleteTrafficMirrorFilterRequest added in v0.1.61

type DeleteTrafficMirrorFilterRequest struct {

	// 流量镜像筛选条件ID
	TrafficMirrorFilterId string `json:"traffic_mirror_filter_id"`
}

DeleteTrafficMirrorFilterRequest Request Object

func (DeleteTrafficMirrorFilterRequest) String added in v0.1.61

type DeleteTrafficMirrorFilterResponse added in v0.1.61

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

DeleteTrafficMirrorFilterResponse Response Object

func (DeleteTrafficMirrorFilterResponse) String added in v0.1.61

type DeleteTrafficMirrorFilterRuleRequest added in v0.1.61

type DeleteTrafficMirrorFilterRuleRequest struct {

	// 流量镜像筛选条件规则ID
	TrafficMirrorFilterRuleId string `json:"traffic_mirror_filter_rule_id"`
}

DeleteTrafficMirrorFilterRuleRequest Request Object

func (DeleteTrafficMirrorFilterRuleRequest) String added in v0.1.61

type DeleteTrafficMirrorFilterRuleResponse added in v0.1.61

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

DeleteTrafficMirrorFilterRuleResponse Response Object

func (DeleteTrafficMirrorFilterRuleResponse) String added in v0.1.61

type DeleteTrafficMirrorSessionRequest added in v0.1.61

type DeleteTrafficMirrorSessionRequest struct {

	// 流量镜像会话ID
	TrafficMirrorSessionId string `json:"traffic_mirror_session_id"`
}

DeleteTrafficMirrorSessionRequest Request Object

func (DeleteTrafficMirrorSessionRequest) String added in v0.1.61

type DeleteTrafficMirrorSessionResponse added in v0.1.61

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

DeleteTrafficMirrorSessionResponse Response Object

func (DeleteTrafficMirrorSessionResponse) String added in v0.1.61

type DeleteVpcRequest added in v0.0.68

type DeleteVpcRequest struct {

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

DeleteVpcRequest 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:"-"`
}

DeleteVpcResponse Response Object

func (DeleteVpcResponse) String added in v0.0.68

func (o DeleteVpcResponse) String() string

type DisassociateSubnetFirewallRequest added in v0.1.56

type DisassociateSubnetFirewallRequest struct {

	// 网络ACL唯一标识
	FirewallId string `json:"firewall_id"`

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

DisassociateSubnetFirewallRequest Request Object

func (DisassociateSubnetFirewallRequest) String added in v0.1.56

type DisassociateSubnetFirewallRequestBody added in v0.1.56

type DisassociateSubnetFirewallRequestBody struct {

	// 解绑ACL的子网列表
	Subnets []FirewallAssociation `json:"subnets"`
}

DisassociateSubnetFirewallRequestBody This is a auto create Body Object

func (DisassociateSubnetFirewallRequestBody) String added in v0.1.56

type DisassociateSubnetFirewallResponse added in v0.1.56

type DisassociateSubnetFirewallResponse struct {
	Firewall *FirewallDetail `json:"firewall,omitempty"`

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

DisassociateSubnetFirewallResponse Response Object

func (DisassociateSubnetFirewallResponse) String added in v0.1.56

type FirewallAssociation added in v0.1.56

type FirewallAssociation struct {

	// 功能说明:ACL绑定的子网ID
	VirsubnetId string `json:"virsubnet_id"`
}

FirewallAssociation

func (FirewallAssociation) String added in v0.1.56

func (o FirewallAssociation) String() string

type FirewallDetail added in v0.1.56

type FirewallDetail struct {

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

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

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

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

	// 功能说明:ACL创建时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss;系统自动生成
	CreatedAt string `json:"created_at"`

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

	// 功能说明:ACL是否开启 取值范围:true表示ACL开启;false表示ACL关闭
	AdminStateUp bool `json:"admin_state_up"`

	// 功能说明:网络ACL的状态
	Status string `json:"status"`

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

	// 功能描述:ACL资源标签
	Tags []ResourceTag `json:"tags"`

	// 功能说明:ACL绑定的子网列表
	Associations []FirewallAssociation `json:"associations"`

	// 功能说明:ACL入方向规则列表
	IngressRules []FirewallRuleDetail `json:"ingress_rules"`

	// 功能说明:ACL出方向规则列表
	EgressRules []FirewallRuleDetail `json:"egress_rules"`
}

FirewallDetail

func (FirewallDetail) String added in v0.1.56

func (o FirewallDetail) String() string

type FirewallInsertRuleItemOption added in v0.1.56

type FirewallInsertRuleItemOption struct {

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

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

	// 功能说明:ACL规则对流量执行的操作放通或拒绝 取值范围:allow放通;deny拒绝
	Action string `json:"action"`

	// 功能说明:ACL规则协议 取值范围:支持tcp,udp,icmp,icmpv6或者协议号(0-255),any表示全部协议
	Protocol string `json:"protocol"`

	// 功能说明:ACL规则的ip版本 取值范围:4, 表示ipv4;6, 表示ipv6
	IpVersion int32 `json:"ip_version"`

	// 功能说明:ACL规则源IP地址或者CIDR 约束:source_ip_address和source_address_group_id不能同时设置
	SourceIpAddress *string `json:"source_ip_address,omitempty"`

	// 功能说明:ACL规则目的IP地址或者CIDR 约束:destination_ip_address和destination_address_group_id不能同时设置
	DestinationIpAddress *string `json:"destination_ip_address,omitempty"`

	// 功能说明:ACL规则的源端口 取值范围:支持端口号,一段端口范围,多个以逗号分隔 约束:支持的端口组的数量默认为20
	SourcePort *string `json:"source_port,omitempty"`

	// 功能说明:ACL规则的目的端口 取值范围:支持端口号,一段端口范围,多个以逗号分隔 约束:支持的端口组的数量默认为20
	DestinationPort *string `json:"destination_port,omitempty"`

	// 功能说明:ACL规则的源地址组ID 约束:source_ip_address和source_address_group_id不能同时设置
	SourceAddressGroupId *string `json:"source_address_group_id,omitempty"`

	// 功能说明:ACL规则的目的地址组ID 约束:destination_ip_address和destination_address_group_id不能同时设置
	DestinationAddressGroupId *string `json:"destination_address_group_id,omitempty"`
}

FirewallInsertRuleItemOption

func (FirewallInsertRuleItemOption) String added in v0.1.56

type FirewallInsertRuleOption added in v0.1.56

type FirewallInsertRuleOption struct {

	// 功能说明:ACL添加入方向规则列表
	IngressRules *[]FirewallInsertRuleItemOption `json:"ingress_rules,omitempty"`

	// 功能说明:ACL添加出方向规则列表
	EgressRules *[]FirewallInsertRuleItemOption `json:"egress_rules,omitempty"`

	// 功能说明:插入ACL的规则在入方向或者出方向某条规则位置后,不指定则在入方向或者出方向规则列表最前面插入规则 约束:指定了insert_after_rule,ingress_rules和egress_rules只能同时设置一个,且该规则在入方向或者出方向规则中存在
	InsertAfterRule *string `json:"insert_after_rule,omitempty"`
}

FirewallInsertRuleOption

func (FirewallInsertRuleOption) String added in v0.1.56

func (o FirewallInsertRuleOption) String() string

type FirewallRemoveRuleItemOption added in v0.1.56

type FirewallRemoveRuleItemOption struct {

	// 功能说明:要删除的ACL规则id
	Id string `json:"id"`
}

FirewallRemoveRuleItemOption

func (FirewallRemoveRuleItemOption) String added in v0.1.56

type FirewallRemoveRuleOption added in v0.1.56

type FirewallRemoveRuleOption struct {

	// 功能说明:ACL删除入方向规则列表 约束:ingress_rules和egress_rules仅能同时设置一个
	IngressRules *[]FirewallRemoveRuleItemOption `json:"ingress_rules,omitempty"`

	// 功能说明:ACL删除出方向规则列表 约束:ingress_rules和egress_rules仅能同时设置一个
	EgressRules *[]FirewallRemoveRuleItemOption `json:"egress_rules,omitempty"`
}

FirewallRemoveRuleOption

func (FirewallRemoveRuleOption) String added in v0.1.56

func (o FirewallRemoveRuleOption) String() string

type FirewallRuleDetail added in v0.1.56

type FirewallRuleDetail struct {

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

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

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

	// 功能说明:ACL规则对流量执行的操作放通或拒绝 取值范围:allow放通;deny拒绝
	Action string `json:"action"`

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

	// 功能说明:ACL规则协议 取值范围:支持TCP,UDP,ICMP, ICMPV6或者IP协议号(0-255)
	Protocol string `json:"protocol"`

	// 功能说明:ACL规则的ip版本 取值范围:4, 表示ipv4;6, 表示ipv6
	IpVersion int32 `json:"ip_version"`

	// 功能说明:ACL规则源IP地址或者CIDR 约束:source_ip_address和source_address_group_id不能同时设置
	SourceIpAddress string `json:"source_ip_address"`

	// 功能说明:ACL规则目的IP地址或者CIDR 约束:destination_ip_address和destination_address_group_id不能同时设置
	DestinationIpAddress string `json:"destination_ip_address"`

	// 功能说明:ACL规则的源端口 取值范围:支持端口号,一段端口范围,多个以逗号分隔 约束:支持的端口组的数量默认为20
	SourcePort string `json:"source_port"`

	// 功能说明:ACL规则的目的端口 取值范围:支持端口号,一段端口范围,多个以逗号分隔 约束:支持的端口组的数量默认为20
	DestinationPort string `json:"destination_port"`

	// 功能说明:ACL规则的源地址组ID 约束:source_ip_address和source_address_group_id不能同时设置
	SourceAddressGroupId string `json:"source_address_group_id"`

	// 功能说明:ACL规则的目的地址组ID 约束:destination_ip_address和destination_address_group_id不能同时设置
	DestinationAddressGroupId string `json:"destination_address_group_id"`
}

FirewallRuleDetail

func (FirewallRuleDetail) String added in v0.1.56

func (o FirewallRuleDetail) String() string

type FirewallUpdateRuleItemOption added in v0.1.56

type FirewallUpdateRuleItemOption struct {

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

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

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

	// 功能说明:ACL规则对流量执行的操作放通或拒绝 取值范围:allow放通;deny拒绝
	Action *string `json:"action,omitempty"`

	// 功能说明:ACL规则协议 取值范围:支持tcp,udp,icmp,icmpv6或者协议号(0-255),any表示全部协议
	Protocol *string `json:"protocol,omitempty"`

	// 功能说明:ACL规则的ip版本 取值范围:4, 表示ipv4;6, 表示ipv6
	IpVersion *int32 `json:"ip_version,omitempty"`

	// 功能说明:ACL规则源IP地址或者CIDR 约束:source_ip_address和source_address_group_id不能同时设置
	SourceIpAddress *string `json:"source_ip_address,omitempty"`

	// 功能说明:ACL规则目的IP地址或者CIDR 约束:destination_ip_address和destination_address_group_id不能同时设置
	DestinationIpAddress *string `json:"destination_ip_address,omitempty"`

	// 功能说明:ACL规则的源端口 取值范围:支持端口号,一段端口范围,多个以逗号分隔 约束:支持的端口组的数量默认为20
	SourcePort *string `json:"source_port,omitempty"`

	// 功能说明:ACL规则的目的端口 取值范围:支持端口号,一段端口范围,多个以逗号分隔 约束:支持的端口组的数量默认为20
	DestinationPort *string `json:"destination_port,omitempty"`

	// 功能说明:ACL规则的源地址组ID 约束:source_ip_address和source_address_group_id不能同时设置
	SourceAddressGroupId *string `json:"source_address_group_id,omitempty"`

	// 功能说明:ACL规则的目的地址组ID 约束:destination_ip_address和destination_address_group_id不能同时设置
	DestinationAddressGroupId *string `json:"destination_address_group_id,omitempty"`
}

FirewallUpdateRuleItemOption

func (FirewallUpdateRuleItemOption) String added in v0.1.56

type FirewallUpdateRuleOption added in v0.1.56

type FirewallUpdateRuleOption struct {

	// 功能说明:ACL更新入方向规则列表 约束:ingress_rules和egress_rules仅能同时设置一个,且当前只支持同时更新一条规则
	IngressRules *[]FirewallUpdateRuleItemOption `json:"ingress_rules,omitempty"`

	// 功能说明:ACL更新出方向规则列表 约束:ingress_rules和egress_rules仅能同时设置一个,且当前只支持同时更新一条规则
	EgressRules *[]FirewallUpdateRuleItemOption `json:"egress_rules,omitempty"`
}

FirewallUpdateRuleOption

func (FirewallUpdateRuleOption) String added in v0.1.56

func (o FirewallUpdateRuleOption) String() string

type InsertSecurityGroupOption added in v0.1.63

type InsertSecurityGroupOption struct {

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

	// 安全组插入的位置,从0开始计数。 举例: 1. 要插入到已关联安全组列表的首位,index=0; 2. 要插入到已关联安全组列表的第n个安全组后面,index=n。 默认插入到端口已关联的安全组列表末尾。
	Index *int32 `json:"index,omitempty"`
}

InsertSecurityGroupOption

func (InsertSecurityGroupOption) String added in v0.1.63

func (o InsertSecurityGroupOption) String() string

type IpExtraSetOption added in v0.1.77

type IpExtraSetOption struct {

	// 功能说明:单个IP地址、IP地址范围或ip地址网段,支持IPv4、IPv6
	Ip string `json:"ip"`

	// 功能说明:IP的备注信息 取值范围:0-255个字符,不能包含“<”和“>”。
	Remarks *string `json:"remarks,omitempty"`
}

IpExtraSetOption

func (IpExtraSetOption) String added in v0.1.77

func (o IpExtraSetOption) String() string

type IpExtraSetRespOption added in v0.1.77

type IpExtraSetRespOption struct {

	// 功能说明:单个IP地址、IP地址范围或ip地址网段,支持IPv4、IPv6
	Ip string `json:"ip"`

	// 功能说明:IP的备注信息 取值范围:0-255个字符,不能包含“<”和“>”。
	Remarks string `json:"remarks"`
}

IpExtraSetRespOption

func (IpExtraSetRespOption) String added in v0.1.77

func (o IpExtraSetRespOption) 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"`

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

ListAddressGroupRequest 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:"-"`
}

ListAddressGroupResponse Response Object

func (ListAddressGroupResponse) String added in v0.0.68

func (o ListAddressGroupResponse) String() string

type ListFirewallDetail added in v0.1.56

type ListFirewallDetail struct {

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

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

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

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

	// 功能说明:ACL创建时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss;系统自动生成
	CreatedAt string `json:"created_at"`

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

	// 功能说明:ACL是否开启 取值范围:true表示ACL开启;false表示ACL关闭
	AdminStateUp bool `json:"admin_state_up"`

	// 功能说明:网络ACL的状态
	Status string `json:"status"`

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

	// 功能描述:ACL资源标签
	Tags []ResourceTag `json:"tags"`

	// 功能说明:ACL绑定的子网列表
	Associations []FirewallAssociation `json:"associations"`
}

ListFirewallDetail

func (ListFirewallDetail) String added in v0.1.56

func (o ListFirewallDetail) String() string

type ListFirewallRequest added in v0.1.56

type ListFirewallRequest struct {

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

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

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

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

	// ACL的状态
	Status *ListFirewallRequestStatus `json:"status,omitempty"`

	// ACL是否启用
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

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

ListFirewallRequest Request Object

func (ListFirewallRequest) String added in v0.1.56

func (o ListFirewallRequest) String() string

type ListFirewallRequestStatus added in v0.1.56

type ListFirewallRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListFirewallRequestStatus) MarshalJSON added in v0.1.56

func (c ListFirewallRequestStatus) MarshalJSON() ([]byte, error)

func (*ListFirewallRequestStatus) UnmarshalJSON added in v0.1.56

func (c *ListFirewallRequestStatus) UnmarshalJSON(b []byte) error

func (ListFirewallRequestStatus) Value added in v0.1.56

type ListFirewallRequestStatusEnum added in v0.1.56

type ListFirewallRequestStatusEnum struct {
	ACTIVE   ListFirewallRequestStatus
	INACTIVE ListFirewallRequestStatus
}

func GetListFirewallRequestStatusEnum added in v0.1.56

func GetListFirewallRequestStatusEnum() ListFirewallRequestStatusEnum

type ListFirewallResponse added in v0.1.56

type ListFirewallResponse struct {

	// ACL防火墙响应体列表
	Firewalls *[]ListFirewallDetail `json:"firewalls,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

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

ListFirewallResponse Response Object

func (ListFirewallResponse) String added in v0.1.56

func (o ListFirewallResponse) 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"`

	// 功能说明:远端IP地址 取值范围:cidr格式
	RemoteIpPrefix *string `json:"remote_ip_prefix,omitempty"`
}

ListSecurityGroupRulesRequest 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:"-"`
}

ListSecurityGroupRulesResponse 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"`
}

ListSecurityGroupsRequest 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:"-"`
}

ListSecurityGroupsResponse 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"`
}

ListSubNetworkInterfacesRequest 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:"-"`
}

ListSubNetworkInterfacesResponse Response Object

func (ListSubNetworkInterfacesResponse) String

type ListTrafficMirrorFilterRulesRequest added in v0.1.61

type ListTrafficMirrorFilterRulesRequest struct {

	// 使用规则ID过滤或排序
	Id *string `json:"id,omitempty"`

	// 使用规则描述过滤
	Description *string `json:"description,omitempty"`

	// 使用筛选条件ID过滤
	TrafficMirrorFilterId *string `json:"traffic_mirror_filter_id,omitempty"`

	// 使用规则方向过滤
	Direction *string `json:"direction,omitempty"`

	// 使用规则协议过滤
	Protocol *string `json:"protocol,omitempty"`

	// 使用规则源网段过滤
	SourceCidrBlock *string `json:"source_cidr_block,omitempty"`

	// 使用规则目的网段过滤
	DestinationCidrBlock *string `json:"destination_cidr_block,omitempty"`

	// 使用规则源端口范围过滤
	SourcePortRange *string `json:"source_port_range,omitempty"`

	// 使用规则目的端口范围过滤
	DestinationPortRange *string `json:"destination_port_range,omitempty"`

	// 使用规则action过滤
	Action *string `json:"action,omitempty"`

	// 使用规则优先级过滤
	Priority *string `json:"priority,omitempty"`

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

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

ListTrafficMirrorFilterRulesRequest Request Object

func (ListTrafficMirrorFilterRulesRequest) String added in v0.1.61

type ListTrafficMirrorFilterRulesResponse added in v0.1.61

type ListTrafficMirrorFilterRulesResponse struct {

	// 流量镜像筛选条件规则对象
	TrafficMirrorFilterRules *[]TrafficMirrorFilterRule `json:"traffic_mirror_filter_rules,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

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

ListTrafficMirrorFilterRulesResponse Response Object

func (ListTrafficMirrorFilterRulesResponse) String added in v0.1.61

type ListTrafficMirrorFiltersRequest added in v0.1.61

type ListTrafficMirrorFiltersRequest struct {

	// 使用ID过滤查询或排序
	Id *string `json:"id,omitempty"`

	// 使用name过滤或排序
	Name *string `json:"name,omitempty"`

	// 使用description过滤查询
	Description *string `json:"description,omitempty"`

	// 使用创建时间戳排序
	CreatedAt *string `json:"created_at,omitempty"`

	// 使用更新时间戳排序
	UpdatedAt *string `json:"updated_at,omitempty"`

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

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

ListTrafficMirrorFiltersRequest Request Object

func (ListTrafficMirrorFiltersRequest) String added in v0.1.61

type ListTrafficMirrorFiltersResponse added in v0.1.61

type ListTrafficMirrorFiltersResponse struct {

	// 流量镜像筛选条件对象列表
	TrafficMirrorFilters *[]TrafficMirrorFilter `json:"traffic_mirror_filters,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

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

ListTrafficMirrorFiltersResponse Response Object

func (ListTrafficMirrorFiltersResponse) String added in v0.1.61

type ListTrafficMirrorSessionsRequest added in v0.1.61

type ListTrafficMirrorSessionsRequest struct {

	// 使用镜像会话ID过滤或排序
	Id *string `json:"id,omitempty"`

	// 使用镜像会话名称过滤或排序
	Name *string `json:"name,omitempty"`

	// 使用镜像会话描述过滤
	Description *string `json:"description,omitempty"`

	// 使用筛选条件ID过滤
	TrafficMirrorFilterId *string `json:"traffic_mirror_filter_id,omitempty"`

	// 使用镜像目的ID过滤
	TrafficMirrorTargetId *string `json:"traffic_mirror_target_id,omitempty"`

	// 使用镜像目的类型过滤
	TrafficMirrorTargetType *string `json:"traffic_mirror_target_type,omitempty"`

	// 使用VNI过滤
	VirtualNetworkId *string `json:"virtual_network_id,omitempty"`

	// 使用最大传输单元MTU过滤
	PacketLength *string `json:"packet_length,omitempty"`

	// 使用镜像会话优先级过滤
	Priority *string `json:"priority,omitempty"`

	// 使用enabled过滤
	Enabled *string `json:"enabled,omitempty"`

	// 使用镜像源类型过滤
	Type *string `json:"type,omitempty"`

	// 使用创建时间戳排序
	CreatedAt *string `json:"created_at,omitempty"`

	// 使用更新时间戳排序
	UpdatedAt *string `json:"updated_at,omitempty"`

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

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

ListTrafficMirrorSessionsRequest Request Object

func (ListTrafficMirrorSessionsRequest) String added in v0.1.61

type ListTrafficMirrorSessionsResponse added in v0.1.61

type ListTrafficMirrorSessionsResponse struct {

	// 流量镜像会话
	TrafficMirrorSessions *[]TrafficMirrorSession `json:"traffic_mirror_sessions,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

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

ListTrafficMirrorSessionsResponse Response Object

func (ListTrafficMirrorSessionsResponse) String added in v0.1.61

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"`
}

ListVpcsRequest 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:"-"`
}

ListVpcsResponse 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"`
}

MigrateSubNetworkInterfaceOption

func (MigrateSubNetworkInterfaceOption) String added in v0.0.68

type MigrateSubNetworkInterfaceRequest added in v0.0.68

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

MigrateSubNetworkInterfaceRequest 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"`
}

MigrateSubNetworkInterfaceRequestBody 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:"-"`
}

MigrateSubNetworkInterfaceResponse 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"`
}

PageInfo

func (PageInfo) String

func (o PageInfo) String() string

type Port added in v0.1.63

type Port struct {

	// 1、功能描述:管理状态 2、取值范围:true/false 3、约束:N/A 4、默认值:true 5、权限:N/A
	AdminStateUp bool `json:"admin_state_up"`

	// 1、功能描述:主机ID 2、取值范围:N/A 3、约束:管理员权限,普通租户不可见 4、默认值:N/A 5、权限:N/A
	BindinghostId string `json:"binding:host_id"`

	// 1、功能描述:提供用户设置自定义信息 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	Bindingprofile *interface{} `json:"binding:profile"`

	// 1、功能描述:vif的详细信息, \"ovs_hybrid_plug\": 是否为ovs/bridge混合模式 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	BindingvifDetails *interface{} `json:"binding:vif_details"`

	// 1、功能描述:端口的接口类型 (ovs/hw_veb等)(扩展属性) 2、取值范围:N/A 3、约束:管理员权限,普通租户不可见 4、默认值:N/A 5、权限:N/A
	BindingvifType string `json:"binding:vif_type"`

	// 1、功能描述:绑定的vNIC类型normal: 软交换direct: SRIOV硬直通(不支持) 2、取值范围:normal或者direct 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	BindingvnicType string `json:"binding:vnic_type"`

	// 1、功能说明:创建时间 2、取值范围:格式 \"UTC时间 格式: yyyy-MM-ddTHH:mm:ss\"  3、约束:N/A 4、默认值:N/A 5、权限:N/A
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 1、功能说明:创建时间 2、取值范围:格式 \"UTC时间 格式: yyyy-MM-ddTHH:mm:ss\"  3、约束:N/A 4、默认值:N/A 5、权限:N/A
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 1、功能说明:端口描述 2、取值范围:0-255个字符,不能包含“<”和“>” 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	Description string `json:"description"`

	// 1、功能描述:端口所属设备ID 2、取值范围:标准UUID 3、约束:不支持设置和更新,由系统自动维护 4、默认值:N/A 5、权限:N/A
	DeviceId string `json:"device_id"`

	// 1、功能描述:设备所属(DHCP/Router/ lb/Nova) 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	DeviceOwner string `json:"device_owner"`

	// 1、功能描述:标识这个端口所属虚拟机的flavor 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	EcsFlavor string `json:"ecs_flavor"`

	// 1、功能描述:端口唯一标识 2、取值范围:标准UUID 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	Id string `json:"id"`

	// 1、功能描述:端口所属实例ID,例如RDS实例ID 2、取值范围:N/A 3、约束:不支持设置和更新,由系统自动维护 4、默认值:N/A 5、权限:N/A
	InstanceId string `json:"instance_id"`

	// 1、功能描述:端口所属实例类型,例如“RDS” 2、取值范围:N/A 3、约束:不支持设置和更新,由系统自动维护 4、默认值:N/A 5、权限:N/A
	InstanceType string `json:"instance_type"`

	// 1、功能描述:MAC地址 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	MacAddress string `json:"mac_address"`

	// 1、功能描述:端口名称 2、取值范围:默认为空,最大长度不超过255 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	Name string `json:"name"`

	// 1、功能描述:端口安全使能标记,如果不使能则安全组和dhcp防欺骗不生效 2、取值范围:true/false 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	PortSecurityEnabled bool `json:"port_security_enabled"`

	// 1、功能描述:port的私有IP地址 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	PrivateIps []PrivateIpInfo `json:"private_ips"`

	// 1、功能描述:项目ID 2、取值范围:UUID 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	ProjectId string `json:"project_id"`

	// 1、功能描述:安全组 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	SecurityGroups []string `json:"security_groups"`

	// 1、功能描述:端口状态 2、取值范围:ACTIVE,BUILD,DOWN 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	Status string `json:"status"`

	// 1、功能描述:租户ID 2、取值范围:UUID 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	TenantId string `json:"tenant_id"`

	// 1、功能描述:所属网络ID 2、取值范围:标准UUID 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	VirsubnetId string `json:"virsubnet_id"`

	// 1、功能描述:VPC的ID 2、取值范围:标准UUID 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	VpcId string `json:"vpc_id"`

	// 1、功能描述:VPC_租户ID 2、取值范围:UUID 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	VpcTenantId string `json:"vpc_tenant_id"`

	// 1、功能描述:本地IP 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	VtepIp string `json:"vtep_ip"`

	// 1、功能描述:是否使能efi,使能则表示端口支持vRoCE能力 2、取值范围:true or false 3、约束:N/A 4、默认值:false 5、权限:N/A
	EnableEfi bool `json:"enable_efi"`

	// 1、功能描述:作用域 2、取值范围:center,表示作用域为中心;{azId},表示作用域为具体的可用区 3、约束:N/A 4、默认值:center 5、权限:N/A
	Scope string `json:"scope"`

	// 1、功能描述:端口所属的可用分区 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	ZoneId string `json:"zone_id"`

	// 1、功能描述:迁移目的节点信息,包括目的节点的binding:vif_details和binding:vif_type 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	BindingmigrationInfo *interface{} `json:"binding:migration_info"`

	// 1、功能描述:DHCP的扩展属性 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	ExtraDhcpOpts []interface{} `json:"extra_dhcp_opts"`

	// 1、功能描述:边缘场景位置类型 2、取值范围:N/A 3、约束:N/A 4、默认值:center 5、权限:N/A
	PositionType string `json:"position_type"`

	// 1、功能描述:端口绑定实例信息 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	InstanceInfo *interface{} `json:"instance_info"`

	// 1、功能描述:端口标签 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A 5、权限:N/A
	Tags []string `json:"tags"`

	// 1、功能描述:IP/Mac对列表 2、取值范围:N/A 3、约束: - IP地址不允许为 “0.0.0.0/0” - 如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组。 - 如果allowed_address_pairs的IP地址为“1.1.1.1/0”,表示关闭源目地址检查开关。 - 被绑定的云服务器网卡allowed_address_pairs的IP地址填“1.1.1.1/0”。 4、默认值:N/A 5、权限:N/A
	AllowedAddressPairs []AllowedAddressPair `json:"allowed_address_pairs"`
}

Port 1、功能说明:端口对象 2、取值范围:N/A 3、约束:N/A 4、默认值:N/A

func (Port) String added in v0.1.63

func (o Port) String() string

type PrivateIpInfo added in v0.1.63

type PrivateIpInfo struct {

	// 端口所属子网ID
	SubnetCidrId string `json:"subnet_cidr_id"`

	// 端口私有IP地址
	IpAddress string `json:"ip_address"`
}

PrivateIpInfo 端口私有IP信息

func (PrivateIpInfo) String added in v0.1.63

func (o PrivateIpInfo) String() string

type RemoveExtendCidrOption added in v0.0.68

type RemoveExtendCidrOption struct {

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

RemoveExtendCidrOption

func (RemoveExtendCidrOption) String added in v0.0.68

func (o RemoveExtendCidrOption) String() string

type RemoveFirewallRulesRequest added in v0.1.56

type RemoveFirewallRulesRequest struct {

	// 网络ACL唯一标识
	FirewallId string `json:"firewall_id"`

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

RemoveFirewallRulesRequest Request Object

func (RemoveFirewallRulesRequest) String added in v0.1.56

type RemoveFirewallRulesRequestBody added in v0.1.56

type RemoveFirewallRulesRequestBody struct {
	Firewall *FirewallRemoveRuleOption `json:"firewall"`
}

RemoveFirewallRulesRequestBody This is a auto create Body Object

func (RemoveFirewallRulesRequestBody) String added in v0.1.56

type RemoveFirewallRulesResponse added in v0.1.56

type RemoveFirewallRulesResponse struct {
	Firewall *FirewallDetail `json:"firewall,omitempty"`

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

RemoveFirewallRulesResponse Response Object

func (RemoveFirewallRulesResponse) String added in v0.1.56

type RemoveSecurityGroupOption added in v0.1.63

type RemoveSecurityGroupOption struct {

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

RemoveSecurityGroupOption

func (RemoveSecurityGroupOption) String added in v0.1.63

func (o RemoveSecurityGroupOption) String() string

type RemoveSecurityGroupsRequest added in v0.1.63

type RemoveSecurityGroupsRequest struct {

	// 端口的唯一标识
	PortId string `json:"port_id"`

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

RemoveSecurityGroupsRequest Request Object

func (RemoveSecurityGroupsRequest) String added in v0.1.63

type RemoveSecurityGroupsRequestBody added in v0.1.63

type RemoveSecurityGroupsRequestBody struct {
	Port *RemoveSecurityGroupOption `json:"port"`
}

RemoveSecurityGroupsRequestBody This is a auto create Body Object

func (RemoveSecurityGroupsRequestBody) String added in v0.1.63

type RemoveSecurityGroupsResponse added in v0.1.63

type RemoveSecurityGroupsResponse struct {

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

	Port           *Port `json:"port,omitempty"`
	HttpStatusCode int   `json:"-"`
}

RemoveSecurityGroupsResponse Response Object

func (RemoveSecurityGroupsResponse) String added in v0.1.63

type RemoveSourcesFromTrafficMirrorSessionRequest added in v0.1.61

type RemoveSourcesFromTrafficMirrorSessionRequest struct {

	// 流量镜像会话ID
	TrafficMirrorSessionId string `json:"traffic_mirror_session_id"`

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

RemoveSourcesFromTrafficMirrorSessionRequest Request Object

func (RemoveSourcesFromTrafficMirrorSessionRequest) String added in v0.1.61

type RemoveSourcesFromTrafficMirrorSessionRequestBody added in v0.1.61

type RemoveSourcesFromTrafficMirrorSessionRequestBody struct {
	TrafficMirrorSession *TrafficMirrorSourcesOption `json:"traffic_mirror_session"`
}

RemoveSourcesFromTrafficMirrorSessionRequestBody

func (RemoveSourcesFromTrafficMirrorSessionRequestBody) String added in v0.1.61

type RemoveSourcesFromTrafficMirrorSessionResponse added in v0.1.61

type RemoveSourcesFromTrafficMirrorSessionResponse struct {
	TrafficMirrorSession *TrafficMirrorSession `json:"traffic_mirror_session,omitempty"`

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

RemoveSourcesFromTrafficMirrorSessionResponse Response Object

func (RemoveSourcesFromTrafficMirrorSessionResponse) String added in v0.1.61

type RemoveVpcExtendCidrRequest added in v0.0.68

type RemoveVpcExtendCidrRequest struct {

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

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

RemoveVpcExtendCidrRequest 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"`
}

RemoveVpcExtendCidrRequestBody 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:"-"`
}

RemoveVpcExtendCidrResponse Response Object

func (RemoveVpcExtendCidrResponse) String added in v0.0.68

type ResourceTag added in v0.1.46

type ResourceTag struct {

	// 功能说明:标签键 约束:同一资源的key值不能重复。
	Key string `json:"key"`

	// 功能说明:标签值
	Value string `json:"value"`
}

ResourceTag

func (ResourceTag) String added in v0.1.46

func (o ResourceTag) 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"`
}

SecurityGroup

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"`
}

SecurityGroupInfo

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"`
}

SecurityGroupRule

func (SecurityGroupRule) String

func (o SecurityGroupRule) String() string

type ShowAddressGroupRequest added in v0.0.68

type ShowAddressGroupRequest struct {

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

ShowAddressGroupRequest 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:"-"`
}

ShowAddressGroupResponse Response Object

func (ShowAddressGroupResponse) String added in v0.0.68

func (o ShowAddressGroupResponse) String() string

type ShowFirewallRequest added in v0.1.56

type ShowFirewallRequest struct {

	// 网络ACL的唯一标识
	FirewallId string `json:"firewall_id"`
}

ShowFirewallRequest Request Object

func (ShowFirewallRequest) String added in v0.1.56

func (o ShowFirewallRequest) String() string

type ShowFirewallResponse added in v0.1.56

type ShowFirewallResponse struct {
	Firewall *FirewallDetail `json:"firewall,omitempty"`

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

ShowFirewallResponse Response Object

func (ShowFirewallResponse) String added in v0.1.56

func (o ShowFirewallResponse) String() string

type ShowSecurityGroupRequest

type ShowSecurityGroupRequest struct {

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

ShowSecurityGroupRequest 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:"-"`
}

ShowSecurityGroupResponse Response Object

func (ShowSecurityGroupResponse) String

func (o ShowSecurityGroupResponse) String() string

type ShowSecurityGroupRuleRequest

type ShowSecurityGroupRuleRequest struct {

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

ShowSecurityGroupRuleRequest 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:"-"`
}

ShowSecurityGroupRuleResponse Response Object

func (ShowSecurityGroupRuleResponse) String

type ShowSubNetworkInterfaceRequest

type ShowSubNetworkInterfaceRequest struct {

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

ShowSubNetworkInterfaceRequest 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:"-"`
}

ShowSubNetworkInterfaceResponse Response Object

func (ShowSubNetworkInterfaceResponse) String

type ShowSubNetworkInterfacesQuantityRequest

type ShowSubNetworkInterfacesQuantityRequest struct {
}

ShowSubNetworkInterfacesQuantityRequest 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:"-"`
}

ShowSubNetworkInterfacesQuantityResponse Response Object

func (ShowSubNetworkInterfacesQuantityResponse) String

type ShowTrafficMirrorFilterRequest added in v0.1.61

type ShowTrafficMirrorFilterRequest struct {

	// 流量镜像筛选条件ID
	TrafficMirrorFilterId string `json:"traffic_mirror_filter_id"`
}

ShowTrafficMirrorFilterRequest Request Object

func (ShowTrafficMirrorFilterRequest) String added in v0.1.61

type ShowTrafficMirrorFilterResponse added in v0.1.61

type ShowTrafficMirrorFilterResponse struct {
	TrafficMirrorFilter *TrafficMirrorFilter `json:"traffic_mirror_filter,omitempty"`

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

ShowTrafficMirrorFilterResponse Response Object

func (ShowTrafficMirrorFilterResponse) String added in v0.1.61

type ShowTrafficMirrorFilterRuleRequest added in v0.1.61

type ShowTrafficMirrorFilterRuleRequest struct {

	// 流量镜像筛选规则ID
	TrafficMirrorFilterRuleId string `json:"traffic_mirror_filter_rule_id"`
}

ShowTrafficMirrorFilterRuleRequest Request Object

func (ShowTrafficMirrorFilterRuleRequest) String added in v0.1.61

type ShowTrafficMirrorFilterRuleResponse added in v0.1.61

type ShowTrafficMirrorFilterRuleResponse struct {
	TrafficMirrorFilterRule *TrafficMirrorFilterRule `json:"traffic_mirror_filter_rule,omitempty"`

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

ShowTrafficMirrorFilterRuleResponse Response Object

func (ShowTrafficMirrorFilterRuleResponse) String added in v0.1.61

type ShowTrafficMirrorSessionRequest added in v0.1.61

type ShowTrafficMirrorSessionRequest struct {

	// 流量镜像会话ID
	TrafficMirrorSessionId string `json:"traffic_mirror_session_id"`
}

ShowTrafficMirrorSessionRequest Request Object

func (ShowTrafficMirrorSessionRequest) String added in v0.1.61

type ShowTrafficMirrorSessionResponse added in v0.1.61

type ShowTrafficMirrorSessionResponse struct {
	TrafficMirrorSession *TrafficMirrorSession `json:"traffic_mirror_session,omitempty"`

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

ShowTrafficMirrorSessionResponse Response Object

func (ShowTrafficMirrorSessionResponse) String added in v0.1.61

type ShowVpcRequest added in v0.0.68

type ShowVpcRequest struct {

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

ShowVpcRequest 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:"-"`
}

ShowVpcResponse 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"`

	// 功能说明:辅助弹性网卡安全使能标记,如果不使能则安全组不生效。 取值范围:true(使能),false(不使能)
	SecurityEnabled bool `json:"security_enabled"`
}

SubNetworkInterface

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"`
}

Tag

func (Tag) String added in v0.0.68

func (o Tag) String() string

type TrafficMirrorFilter added in v0.1.61

type TrafficMirrorFilter struct {

	// 功能说明:流量镜像筛选条件ID
	Id string `json:"id"`

	// 功能说明:项目ID
	ProjectId string `json:"project_id"`

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

	// 功能说明:流量镜像筛选条件的名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:入方向筛选规则列表
	IngressRules []TrafficMirrorFilterRule `json:"ingress_rules"`

	// 功能说明:出方向筛选规则列表
	EgressRules []TrafficMirrorFilterRule `json:"egress_rules"`

	// 创建时间戳
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 更新时间戳
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

TrafficMirrorFilter

func (TrafficMirrorFilter) String added in v0.1.61

func (o TrafficMirrorFilter) String() string

type TrafficMirrorFilterRule added in v0.1.61

type TrafficMirrorFilterRule struct {

	// 功能说明:流量镜像筛选规则ID
	Id string `json:"id"`

	// 功能说明:项目ID
	ProjectId string `json:"project_id"`

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

	// 功能说明:流量镜像筛选条件ID
	TrafficMirrorFilterId string `json:"traffic_mirror_filter_id"`

	// 功能说明:流量方向 取值范围:     ingress:入方向     egress:出方向
	Direction string `json:"direction"`

	// 功能说明:镜像流量的源网段
	SourceCidrBlock string `json:"source_cidr_block"`

	// 功能说明:镜像流量的目的网段
	DestinationCidrBlock string `json:"destination_cidr_block"`

	// 功能说明:流量源端口范围 取值范围:1~65535 格式:80-200
	SourcePortRange string `json:"source_port_range"`

	// 功能说明:流量目的端口范围 取值范围:1~65535 格式:80-200
	DestinationPortRange string `json:"destination_port_range"`

	// 功能说明:镜像流量的地址协议版本 取值范围:IPv4,IPv6
	Ethertype string `json:"ethertype"`

	// 功能说明:镜像流量的协议类型 取值范围:TCP、UDP、ICMP、ICMPV6、ALL
	Protocol string `json:"protocol"`

	// 功能说明:镜像策略 取值范围:accept(采集)、reject(不采集)
	Action string `json:"action"`

	// 功能说明:镜像规则优先级 取值范围:1~65535,数字越小,优先级越高
	Priority int32 `json:"priority"`

	// 创建时间戳
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 更新时间戳
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

TrafficMirrorFilterRule

func (TrafficMirrorFilterRule) String added in v0.1.61

func (o TrafficMirrorFilterRule) String() string

type TrafficMirrorSession added in v0.1.61

type TrafficMirrorSession struct {

	// 功能说明:流量镜像会话ID
	Id string `json:"id"`

	// 功能说明:项目ID
	ProjectId string `json:"project_id"`

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

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

	// 功能说明:流量镜像筛选条件ID
	TrafficMirrorFilterId string `json:"traffic_mirror_filter_id"`

	// 功能说明:镜像源ID列表,支持弹性网卡作为镜像源。 约束:一个镜像会话默认最大支持10个镜像源。
	TrafficMirrorSources []string `json:"traffic_mirror_sources"`

	// 功能说明:镜像目的ID
	TrafficMirrorTargetId string `json:"traffic_mirror_target_id"`

	// 功能说明:镜像目的类型 取值范围:     eni:弹性网卡     elb:私网弹性负载均衡
	TrafficMirrorTargetType string `json:"traffic_mirror_target_type"`

	// 功能说明:指定VNI,用于区分不同会话的镜像流量 取值范围:0~16777215 默认值:1
	VirtualNetworkId int32 `json:"virtual_network_id"`

	// 功能说明:最大传输单元MTU 取值范围:1~1460 默认值:96
	PacketLength int32 `json:"packet_length"`

	// 功能说明:会话优先级 取值范围:1~32766
	Priority int32 `json:"priority"`

	// 功能说明:是否开启会话 取值范围:true、false 默认值:false
	Enabled bool `json:"enabled"`

	// 功能说明:支持的镜像源类型 取值范围:     eni:弹性网卡
	Type string `json:"type"`

	// 功能说明:创建时间戳
	CreatedAt string `json:"created_at"`

	// 功能说明:更新时间戳
	UpdatedAt string `json:"updated_at"`
}

TrafficMirrorSession

func (TrafficMirrorSession) String added in v0.1.61

func (o TrafficMirrorSession) String() string

type TrafficMirrorSourcesOption added in v0.1.61

type TrafficMirrorSourcesOption struct {

	// 功能说明:镜像源ID列表
	TrafficMirrorSources []string `json:"traffic_mirror_sources"`
}

TrafficMirrorSourcesOption

func (TrafficMirrorSourcesOption) String added in v0.1.61

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"`

	// 功能说明:地址组最大条目数,限制地址组可以包含的地址数量 取值范围:0-20
	MaxCapacity *int32 `json:"max_capacity,omitempty"`

	// 功能说明:IP地址组包含的IP列表及其备注信息 约束:ip数量限制默认20, 与ip_set参数只能二选一
	IpExtraSet *[]IpExtraSetOption `json:"ip_extra_set,omitempty"`
}

UpdateAddressGroupOption

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"`
}

UpdateAddressGroupRequest 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"`
}

UpdateAddressGroupRequestBody 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:"-"`
}

UpdateAddressGroupResponse Response Object

func (UpdateAddressGroupResponse) String added in v0.0.68

type UpdateFirewallOption added in v0.1.56

type UpdateFirewallOption struct {

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

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

	// 功能说明:ACL是否开启 取值范围:true表示ACL开启;false表示ACL关闭
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
}

UpdateFirewallOption

func (UpdateFirewallOption) String added in v0.1.56

func (o UpdateFirewallOption) String() string

type UpdateFirewallRequest added in v0.1.56

type UpdateFirewallRequest struct {

	// 网络ACL的唯一标识
	FirewallId string `json:"firewall_id"`

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

UpdateFirewallRequest Request Object

func (UpdateFirewallRequest) String added in v0.1.56

func (o UpdateFirewallRequest) String() string

type UpdateFirewallRequestBody added in v0.1.56

type UpdateFirewallRequestBody struct {
	Firewall *UpdateFirewallOption `json:"firewall"`
}

UpdateFirewallRequestBody This is a auto create Body Object

func (UpdateFirewallRequestBody) String added in v0.1.56

func (o UpdateFirewallRequestBody) String() string

type UpdateFirewallResponse added in v0.1.56

type UpdateFirewallResponse struct {
	Firewall *FirewallDetail `json:"firewall,omitempty"`

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

UpdateFirewallResponse Response Object

func (UpdateFirewallResponse) String added in v0.1.56

func (o UpdateFirewallResponse) String() string

type UpdateFirewallRulesRequest added in v0.1.56

type UpdateFirewallRulesRequest struct {

	// 网络ACL唯一标识
	FirewallId string `json:"firewall_id"`

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

UpdateFirewallRulesRequest Request Object

func (UpdateFirewallRulesRequest) String added in v0.1.56

type UpdateFirewallRulesRequestBody added in v0.1.56

type UpdateFirewallRulesRequestBody struct {
	Firewall *FirewallUpdateRuleOption `json:"firewall"`
}

UpdateFirewallRulesRequestBody This is a auto create Body Object

func (UpdateFirewallRulesRequestBody) String added in v0.1.56

type UpdateFirewallRulesResponse added in v0.1.56

type UpdateFirewallRulesResponse struct {
	Firewall *FirewallDetail `json:"firewall,omitempty"`

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

UpdateFirewallRulesResponse Response Object

func (UpdateFirewallRulesResponse) String added in v0.1.56

type UpdateSecurityGroupOption

type UpdateSecurityGroupOption struct {

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

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

UpdateSecurityGroupOption

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"`
}

UpdateSecurityGroupRequest Request Object

func (UpdateSecurityGroupRequest) String

type UpdateSecurityGroupRequestBody

type UpdateSecurityGroupRequestBody struct {

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

	SecurityGroup *UpdateSecurityGroupOption `json:"security_group"`
}

UpdateSecurityGroupRequestBody 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:"-"`
}

UpdateSecurityGroupResponse 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"`
}

UpdateSubNetworkInterfaceOption

func (UpdateSubNetworkInterfaceOption) String

type UpdateSubNetworkInterfaceRequest

type UpdateSubNetworkInterfaceRequest struct {

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

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

UpdateSubNetworkInterfaceRequest 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"`
}

UpdateSubNetworkInterfaceRequestBody 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:"-"`
}

UpdateSubNetworkInterfaceResponse Response Object

func (UpdateSubNetworkInterfaceResponse) String

type UpdateTrafficMirrorFilterOption added in v0.1.61

type UpdateTrafficMirrorFilterOption struct {

	// 功能说明:流量镜像筛选条件的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`

	// 功能说明:流量镜像筛选条件的名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name *string `json:"name,omitempty"`
}

UpdateTrafficMirrorFilterOption

func (UpdateTrafficMirrorFilterOption) String added in v0.1.61

type UpdateTrafficMirrorFilterRequest added in v0.1.61

type UpdateTrafficMirrorFilterRequest struct {

	// 流量镜像筛选条件ID
	TrafficMirrorFilterId string `json:"traffic_mirror_filter_id"`

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

UpdateTrafficMirrorFilterRequest Request Object

func (UpdateTrafficMirrorFilterRequest) String added in v0.1.61

type UpdateTrafficMirrorFilterRequestBody added in v0.1.61

type UpdateTrafficMirrorFilterRequestBody struct {
	TrafficMirrorFilter *UpdateTrafficMirrorFilterOption `json:"traffic_mirror_filter"`
}

UpdateTrafficMirrorFilterRequestBody

func (UpdateTrafficMirrorFilterRequestBody) String added in v0.1.61

type UpdateTrafficMirrorFilterResponse added in v0.1.61

type UpdateTrafficMirrorFilterResponse struct {
	TrafficMirrorFilter *TrafficMirrorFilter `json:"traffic_mirror_filter,omitempty"`

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

UpdateTrafficMirrorFilterResponse Response Object

func (UpdateTrafficMirrorFilterResponse) String added in v0.1.61

type UpdateTrafficMirrorFilterRuleOption added in v0.1.61

type UpdateTrafficMirrorFilterRuleOption struct {

	// 功能说明:流量镜像筛选规则的描述信息 取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`

	// 功能说明:镜像流量的协议类型 取值范围:TCP、UDP、ICMP、ICMPV6、ALL
	Protocol *string `json:"protocol,omitempty"`

	// 功能说明:镜像流量的地址协议版本 取值范围:IPv4,IPv6
	Ethertype *string `json:"ethertype,omitempty"`

	// 功能说明:镜像流量的源网段
	SourceCidrBlock *string `json:"source_cidr_block,omitempty"`

	// 功能说明:镜像流量的目的网段
	DestinationCidrBlock *string `json:"destination_cidr_block,omitempty"`

	// 功能说明:流量源端口范围 取值范围:1~65535 格式:80-200
	SourcePortRange *string `json:"source_port_range,omitempty"`

	// 功能说明:流量目的端口范围 取值范围:1~65535 格式:80-200
	DestinationPortRange *string `json:"destination_port_range,omitempty"`

	// 功能说明:镜像规则优先级 取值范围:1~65535,数字越小,优先级越高
	Priority *int32 `json:"priority,omitempty"`

	// 功能说明:镜像策略 取值范围:accept(采集)、reject(不采集)
	Action *string `json:"action,omitempty"`
}

UpdateTrafficMirrorFilterRuleOption

func (UpdateTrafficMirrorFilterRuleOption) String added in v0.1.61

type UpdateTrafficMirrorFilterRuleRequest added in v0.1.61

type UpdateTrafficMirrorFilterRuleRequest struct {

	// 流量镜像筛选条件规则ID
	TrafficMirrorFilterRuleId string `json:"traffic_mirror_filter_rule_id"`

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

UpdateTrafficMirrorFilterRuleRequest Request Object

func (UpdateTrafficMirrorFilterRuleRequest) String added in v0.1.61

type UpdateTrafficMirrorFilterRuleRequestBody added in v0.1.61

type UpdateTrafficMirrorFilterRuleRequestBody struct {
	TrafficMirrorFilterRule *UpdateTrafficMirrorFilterRuleOption `json:"traffic_mirror_filter_rule"`
}

UpdateTrafficMirrorFilterRuleRequestBody

func (UpdateTrafficMirrorFilterRuleRequestBody) String added in v0.1.61

type UpdateTrafficMirrorFilterRuleResponse added in v0.1.61

type UpdateTrafficMirrorFilterRuleResponse struct {
	TrafficMirrorFilterRule *TrafficMirrorFilterRule `json:"traffic_mirror_filter_rule,omitempty"`

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

UpdateTrafficMirrorFilterRuleResponse Response Object

func (UpdateTrafficMirrorFilterRuleResponse) String added in v0.1.61

type UpdateTrafficMirrorSessionOption added in v0.1.61

type UpdateTrafficMirrorSessionOption struct {

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

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

	// 功能说明:流量镜像筛选条件ID
	TrafficMirrorFilterId *string `json:"traffic_mirror_filter_id,omitempty"`

	// 功能说明:镜像目标ID
	TrafficMirrorTargetId *string `json:"traffic_mirror_target_id,omitempty"`

	// 功能说明:镜像目的类型 取值范围:     eni:弹性网卡     elb:私网弹性负载均衡
	TrafficMirrorTargetType *string `json:"traffic_mirror_target_type,omitempty"`

	// 功能说明:指定VNI,用于在镜像目的区分不同会话的镜像流量 取值范围:0~16777215
	VirtualNetworkId *int32 `json:"virtual_network_id,omitempty"`

	// 功能说明:最大传输单元MTU 取值范围:1~1460
	PacketLength *int32 `json:"packet_length,omitempty"`

	// 功能说明:会话优先级 取值范围:1~32766
	Priority *int32 `json:"priority,omitempty"`

	// 功能说明:是否开启会话 取值范围:true、false
	Enabled *string `json:"enabled,omitempty"`

	// 功能说明:支持的镜像源类型 取值范围:     eni:弹性网卡
	Type *string `json:"type,omitempty"`
}

UpdateTrafficMirrorSessionOption

func (UpdateTrafficMirrorSessionOption) String added in v0.1.61

type UpdateTrafficMirrorSessionRequest added in v0.1.61

type UpdateTrafficMirrorSessionRequest struct {

	// 流量镜像会话ID
	TrafficMirrorSessionId string `json:"traffic_mirror_session_id"`

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

UpdateTrafficMirrorSessionRequest Request Object

func (UpdateTrafficMirrorSessionRequest) String added in v0.1.61

type UpdateTrafficMirrorSessionRequestBody added in v0.1.61

type UpdateTrafficMirrorSessionRequestBody struct {
	TrafficMirrorSession *UpdateTrafficMirrorSessionOption `json:"traffic_mirror_session"`
}

UpdateTrafficMirrorSessionRequestBody

func (UpdateTrafficMirrorSessionRequestBody) String added in v0.1.61

type UpdateTrafficMirrorSessionResponse added in v0.1.61

type UpdateTrafficMirrorSessionResponse struct {
	TrafficMirrorSession *TrafficMirrorSession `json:"traffic_mirror_session,omitempty"`

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

UpdateTrafficMirrorSessionResponse Response Object

func (UpdateTrafficMirrorSessionResponse) String added in v0.1.61

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"`
}

UpdateVpcOption

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"`
}

UpdateVpcRequest 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"`
}

UpdateVpcRequestBody 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:"-"`
}

UpdateVpcResponse 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"`
}

Vpc

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