capability

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityEntry

type CapabilityEntry struct {
	// Instance ID.
	ID string `json:"id"`
	// Account ID.
	DomainId string `json:"domain_id"`
	// Capability.
	Capability string `json:"capability"`
	// Capability specifications.
	Specifications CapabilitySpecifications `json:"specifications"`
}

CapabilityEntry describes a central network capability.

type CapabilitySpecifications

type CapabilitySpecifications struct {
	// Whether the capability is supported.
	IsSupport bool `json:"is_support"`
	// Supported bandwidth size range.
	SizeRange ConnectionBandwidthSizeRange `json:"size_range"`
	// Supported billing options.
	ChargeMode []string `json:"charge_mode"`
	// Free lines.
	FreeLines []ConnectionBandwidthFreeLine `json:"free_lines"`
	// Supported regions.
	SupportRegions []string `json:"support_regions"`
	// Regions that support IPv6.
	SupportIpv6Regions []string `json:"support_ipv6_regions"`
	// Regions that support DSCP.
	SupportDscpRegions []string `json:"support_dscp_regions"`
	// Regions that support STS5.
	SupportSts5Regions []string `json:"support_sts5_regions"`
	// Supported sites.
	SupportSites []SiteSpecifications `json:"support_sites"`
	// Regions that support freezing.
	SupportFreezeRegions []string `json:"support_freeze_regions"`
}

CapabilitySpecifications describes the specifications of a capability.

type ConnectionBandwidthFreeLine

type ConnectionBandwidthFreeLine struct {
	// Local site code.
	LocalSiteCode string `json:"local_site_code"`
	// Remote site code.
	RemoteSiteCode string `json:"remote_site_code"`
}

ConnectionBandwidthFreeLine describes a free line.

type ConnectionBandwidthSizeRange

type ConnectionBandwidthSizeRange struct {
	// Minimum bandwidth in Mbit/s.
	Min int64 `json:"min"`
	// Maximum bandwidth in Mbit/s.
	Max int64 `json:"max"`
}

ConnectionBandwidthSizeRange describes the bandwidth size range.

type ListCapabilityResp

type ListCapabilityResp struct {
	// Request ID.
	RequestId string `json:"request_id"`
	// Pagination query information.
	PageInfo PageInfo `json:"page_info"`
	// Capability list.
	Capabilities []CapabilityEntry `json:"capabilities"`
}

func List

type ListOpts

type ListOpts struct {
	// Capability. Multiple capabilities can be queried.
	Capability []string `q:"capability"`
	// Number of records returned on each page. Value range: 1 to 2000.
	Limit int `q:"limit"`
	// ID of the last record on the previous page.
	Marker string `q:"marker"`
}

type PageInfo

type PageInfo struct {
	// Marker of the next page.
	NextMarker string `json:"next_marker"`
	// Marker of the previous page.
	PreviousMarker string `json:"previous_marker"`
	// Number of records in the current page.
	CurrentCount int `json:"current_count"`
}

PageInfo is the pagination information returned by list operations.

type SiteSpecifications

type SiteSpecifications struct {
	// Region ID.
	RegionId string `json:"region_id"`
	// Site code.
	SiteCode string `json:"site_code"`
}

SiteSpecifications describes a supported site.

Jump to

Keyboard shortcuts

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