unet

package
v0.22.26 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescribeSecurityGroupRequest

type DescribeSecurityGroupRequest struct {
	request.CommonBase

	// 绑定防火墙组的资源类型,如uhost
	ResourceType *string `required:"false"`

	// 绑定防火墙组的资源ID
	ResourceId *string `required:"false"`

	// 防火墙ID
	GroupId *string `required:"false"`
}

DescribeSecurityGroupRequest is request schema for DescribeSecurityGroup action

type DescribeSecurityGroupResponse

type DescribeSecurityGroupResponse struct {
	response.CommonBase

	// 获取的防火墙组详细信息 参见 UnetSecurityGroupSet
	DataSet []UnetSecurityGroupSet
}

DescribeSecurityGroupResponse is response schema for DescribeSecurityGroup action

type DescribeShareBandwidthPriceRequest

type DescribeShareBandwidthPriceRequest struct {
	request.CommonBase

	// 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需;后付费:Postpay(按月)
	ChargeType *string `required:"true"`

	// 共享带宽值(预付费)/共享带宽峰值(后付费)
	ShareBandwidth *int `required:"true"`

	// 购买时长(预付费)
	Quantity *int `required:"false"`

	// 共享带宽保底值(后付费)
	ShareBandwidthGuarantee *int `required:"false"`
}

DescribeShareBandwidthPriceRequest is request schema for DescribeShareBandwidthPrice action

type DescribeShareBandwidthPriceResponse

type DescribeShareBandwidthPriceResponse struct {
	response.CommonBase

	// 共享带宽总价
	TotalPrice int
}

DescribeShareBandwidthPriceResponse is response schema for DescribeShareBandwidthPrice action

type SecurityGroupRuleSet

type SecurityGroupRuleSet struct {

	// 源地址
	SrcIP string

	// 优先级
	Priority string

	// 协议类型
	ProtocolType string

	// 目标端口
	DstPort string

	// 防火墙动作
	RuleAction string
}

SecurityGroupRuleSet - DescribeSecurityGroup

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UNetClient

type UNetClient struct {
	*ucloud.Client
}

UNetClient is the client of UNet

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UNetClient

NewClient will return a instance of UNetClient

func (*UNetClient) DescribeSecurityGroup

DescribeSecurityGroup - 获取防火墙组信息

func (*UNetClient) DescribeShareBandwidthPrice

DescribeShareBandwidthPrice - 获取共享带宽价格

func (*UNetClient) NewDescribeSecurityGroupRequest

func (c *UNetClient) NewDescribeSecurityGroupRequest() *DescribeSecurityGroupRequest

NewDescribeSecurityGroupRequest will create request of DescribeSecurityGroup action.

func (*UNetClient) NewDescribeShareBandwidthPriceRequest

func (c *UNetClient) NewDescribeShareBandwidthPriceRequest() *DescribeShareBandwidthPriceRequest

NewDescribeShareBandwidthPriceRequest will create request of DescribeShareBandwidthPrice action.

type UnetSecurityGroupSet

type UnetSecurityGroupSet struct {

	// 防火墙ID,可选,为空时不显示Rule
	GroupId string

	// 防火墙组的名称
	GroupName string

	// 防火墙组创建时间,格式为Unix Timestamp
	CreateTime int

	// 防火墙组类型,枚举值为: 0:用户自定义防火墙; 1:默认Web防火墙; 2:默认非Web防火墙
	Type int

	// 防火墙组中的规则表,参见 SecurityGroupRuleSet
	Rule []SecurityGroupRuleSet
}

UnetSecurityGroupSet - DescribeSecurityGroup

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

Jump to

Keyboard shortcuts

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