vpc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MPL-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCtyunBandwidth

func NewCtyunBandwidth() resource.Resource

func NewCtyunBandwidthAssociationEip

func NewCtyunBandwidthAssociationEip() resource.Resource

func NewCtyunBandwidths

func NewCtyunBandwidths() datasource.DataSource

func NewCtyunEip

func NewCtyunEip() resource.Resource

func NewCtyunEipAssociation

func NewCtyunEipAssociation() resource.Resource

func NewCtyunEips

func NewCtyunEips() datasource.DataSource

func NewCtyunSecurityGroup

func NewCtyunSecurityGroup() resource.Resource

func NewCtyunSecurityGroupRule

func NewCtyunSecurityGroupRule() resource.Resource

func NewCtyunSecurityGroups

func NewCtyunSecurityGroups() datasource.DataSource

func NewCtyunSubnet

func NewCtyunSubnet() resource.Resource

func NewCtyunSubnets

func NewCtyunSubnets() datasource.DataSource

func NewCtyunVpc

func NewCtyunVpc() resource.Resource

func NewCtyunVpcRouteTable

func NewCtyunVpcRouteTable() resource.Resource

func NewCtyunVpcRouteTableRule

func NewCtyunVpcRouteTableRule() resource.Resource

func NewCtyunVpcRouteTableRules

func NewCtyunVpcRouteTableRules() datasource.DataSource

func NewCtyunVpcRouteTables

func NewCtyunVpcRouteTables() datasource.DataSource

func NewCtyunVpcs

func NewCtyunVpcs() datasource.DataSource

Types

type CtyunBandwidAssociationEipConfig

type CtyunBandwidAssociationEipConfig struct {
	ID          types.String `tfsdk:"id"`
	BandwidthId types.String `tfsdk:"bandwidth_id"`
	EipId       types.String `tfsdk:"eip_id"`
	ProjectId   types.String `tfsdk:"project_id"`
	RegionId    types.String `tfsdk:"region_id"`
}

type CtyunBandwidthConfig

type CtyunBandwidthConfig struct {
	CycleType  types.String `tfsdk:"cycle_type"`
	Bandwidth  types.Int32  `tfsdk:"bandwidth"`
	CycleCount types.Int64  `tfsdk:"cycle_count"`
	Name       types.String `tfsdk:"name"`
	Id         types.String `tfsdk:"id"`
	Status     types.String `tfsdk:"status"`
	ProjectId  types.String `tfsdk:"project_id"`
	RegionId   types.String `tfsdk:"region_id"`
}

type CtyunBandwidthsConfig

type CtyunBandwidthsConfig struct {
	RegionID     types.String           `tfsdk:"region_id"`
	ProjectID    types.String           `tfsdk:"project_id"`
	PageNo       types.Int32            `tfsdk:"page_no"`
	PageSize     types.Int32            `tfsdk:"page_size"`
	BandwidthID  types.String           `tfsdk:"bandwidth_id"`
	CurrentCount types.Int32            `tfsdk:"current_count"`
	TotalCount   types.Int32            `tfsdk:"total_count"`
	TotalPage    types.Int32            `tfsdk:"total_page"`
	Bandwidths   []CtyunBandwidthsModel `tfsdk:"bandwidths"`
}

type CtyunBandwidthsEip

type CtyunBandwidthsEip struct {
	EipID      types.String `tfsdk:"eip_id"`
	EipAddress types.String `tfsdk:"eip_address"`
}

type CtyunBandwidthsModel

type CtyunBandwidthsModel struct {
	ID        types.String         `tfsdk:"id"`
	Name      types.String         `tfsdk:"name"`
	Bandwidth types.Int32          `tfsdk:"bandwidth"`
	Status    types.String         `tfsdk:"status"`
	Eips      []CtyunBandwidthsEip `tfsdk:"eips"`
	CreatedAt types.String         `tfsdk:"created_at"`
	ExpiredAt types.String         `tfsdk:"expired_at"`
}

type CtyunEipAssociationConfig

type CtyunEipAssociationConfig struct {
	ID              types.String `tfsdk:"id"`
	EipId           types.String `tfsdk:"eip_id"`
	AssociationType types.String `tfsdk:"association_type"`
	InstanceId      types.String `tfsdk:"instance_id"`
	ProjectId       types.String `tfsdk:"project_id"`
	RegionId        types.String `tfsdk:"region_id"`
}

type CtyunEipConfig

type CtyunEipConfig struct {
	Id                types.String `tfsdk:"id"`
	Name              types.String `tfsdk:"name"`
	CycleType         types.String `tfsdk:"cycle_type"`
	CycleCount        types.Int64  `tfsdk:"cycle_count"`
	Bandwidth         types.Int32  `tfsdk:"bandwidth"`
	CurrentBandwidth  types.Int32  `tfsdk:"current_bandwidth"`
	BandwidthType     types.String `tfsdk:"bandwidth_type"`
	DemandBillingType types.String `tfsdk:"demand_billing_type"`
	Address           types.String `tfsdk:"address"`
	Status            types.String `tfsdk:"status"`
	ExpireTime        types.String `tfsdk:"expire_time"`
	MasterOrderId     types.String `tfsdk:"master_order_id"`
	ProjectId         types.String `tfsdk:"project_id"`
	RegionId          types.String `tfsdk:"region_id"`
}

type CtyunEipsConfig

type CtyunEipsConfig struct {
	RegionID  types.String `tfsdk:"region_id"`
	ProjectID types.String `tfsdk:"project_id"`
	PageNo    types.Int32  `tfsdk:"page_no"`
	PageSize  types.Int32  `tfsdk:"page_size"`
	Ids       types.String `tfsdk:"ids"`
	Status    types.String `tfsdk:"status"`
	EipType   types.String `tfsdk:"eip_type"`
	Ip        types.String `tfsdk:"ip"`

	CurrentCount types.Int32      `tfsdk:"current_count"`
	TotalCount   types.Int32      `tfsdk:"total_count"`
	TotalPage    types.Int32      `tfsdk:"total_page"`
	Eips         []CtyunEipsModel `tfsdk:"eips"`
}

type CtyunEipsModel

type CtyunEipsModel struct {
	ID               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	Description      types.String `tfsdk:"description"`
	EipAddress       types.String `tfsdk:"eip_address"`
	AssociationID    types.String `tfsdk:"association_id"`
	AssociationType  types.String `tfsdk:"association_type"`
	PrivateIpAddress types.String `tfsdk:"private_ip_address"`
	Bandwidth        types.Int32  `tfsdk:"bandwidth"`
	BandwidthID      types.String `tfsdk:"bandwidth_id"`
	BandwidthType    types.String `tfsdk:"bandwidth_type"`
	Status           types.String `tfsdk:"status"`
	Tags             types.String `tfsdk:"tags"`
	CreatedAt        types.String `tfsdk:"created_at"`
	UpdatedAt        types.String `tfsdk:"updated_at"`
	ExpiredAt        types.String `tfsdk:"expired_at"`
}

type CtyunSecurityGroupConfig

type CtyunSecurityGroupConfig struct {
	Id          types.String `tfsdk:"id"`
	VpcId       types.String `tfsdk:"vpc_id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	ProjectId   types.String `tfsdk:"project_id"`
	RegionId    types.String `tfsdk:"region_id"`
}

type CtyunSecurityGroupRule

type CtyunSecurityGroupRule struct {
	Direction       types.String `tfsdk:"direction"`
	Priority        types.Int32  `tfsdk:"priority"`
	Ethertype       types.String `tfsdk:"ethertype"`
	Protocol        types.String `tfsdk:"protocol"`
	Range           types.String `tfsdk:"range"`
	DestCidrIp      types.String `tfsdk:"dest_cidr_ip"`
	Description     types.String `tfsdk:"description"`
	CreateTime      types.String `tfsdk:"create_time"`
	RuleID          types.String `tfsdk:"rule_id"`
	SecurityGroupID types.String `tfsdk:"security_group_id"`
	Action          types.String `tfsdk:"action"`
}

type CtyunSecurityGroupRuleConfig

type CtyunSecurityGroupRuleConfig struct {
	Id              types.String `tfsdk:"id"`
	SecurityGroupId types.String `tfsdk:"security_group_id"`
	Direction       types.String `tfsdk:"direction"`
	Action          types.String `tfsdk:"action"`
	Priority        types.Int64  `tfsdk:"priority"`
	Protocol        types.String `tfsdk:"protocol"`
	EtherType       types.String `tfsdk:"ether_type"`
	DestCidrIp      types.String `tfsdk:"dest_cidr_ip"`
	Description     types.String `tfsdk:"description"`
	Range           types.String `tfsdk:"range"`
	RegionId        types.String `tfsdk:"region_id"`
}

type CtyunSecurityGroupsConfig

type CtyunSecurityGroupsConfig struct {
	RegionID        types.String `tfsdk:"region_id"`
	VpcID           types.String `tfsdk:"vpc_id"`
	PageNo          types.Int32  `tfsdk:"page_no"`
	PageSize        types.Int32  `tfsdk:"page_size"`
	InstanceID      types.String `tfsdk:"instance_id"`
	SecurityGroupID types.String `tfsdk:"security_group_id"`

	CurrentCount   types.Int32                `tfsdk:"current_count"`
	TotalCount     types.Int32                `tfsdk:"total_count"`
	TotalPage      types.Int32                `tfsdk:"total_page"`
	SecurityGroups []CtyunSecurityGroupsModel `tfsdk:"security_groups"`
}

type CtyunSecurityGroupsModel

type CtyunSecurityGroupsModel struct {
	Name                  types.String             `tfsdk:"name"`
	SecurityGroupID       types.String             `tfsdk:"security_group_id"`
	VmNum                 types.Int32              `tfsdk:"vm_num"`
	Origin                types.String             `tfsdk:"origin"`
	VpcName               types.String             `tfsdk:"vpc_name"`
	VpcID                 types.String             `tfsdk:"vpc_id"`
	CreationTime          types.String             `tfsdk:"creation_time"`
	Description           types.String             `tfsdk:"description"`
	SecurityGroupRuleList []CtyunSecurityGroupRule `tfsdk:"security_group_rule_list"`
}

type CtyunSubnetConfig

type CtyunSubnetConfig struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	VpcId       types.String `tfsdk:"vpc_id"`
	Cidr        types.String `tfsdk:"cidr"`
	Description types.String `tfsdk:"description"`
	Dns         types.Set    `tfsdk:"dns"`
	EnableIpv6  types.Bool   `tfsdk:"enable_ipv6"`
	Type        types.String `tfsdk:"type"`
	GatewayIp   types.String `tfsdk:"gateway_ip"`
	Ipv4Start   types.String `tfsdk:"ipv4_start"`
	Ipv4End     types.String `tfsdk:"ipv4_end"`
	Ipv6Start   types.String `tfsdk:"ipv6_start"`
	Ipv6End     types.String `tfsdk:"ipv6_end"`
	ProjectId   types.String `tfsdk:"project_id"`
	RegionId    types.String `tfsdk:"region_id"`
}

type CtyunSubnetsConfig

type CtyunSubnetsConfig struct {
	RegionID types.String `tfsdk:"region_id"`
	VpcID    types.String `tfsdk:"vpc_id"`
	PageNo   types.Int32  `tfsdk:"page_no"`
	PageSize types.Int32  `tfsdk:"page_size"`
	SubnetID types.String `tfsdk:"subnet_id"`

	CurrentCount types.Int32         `tfsdk:"current_count"`
	TotalCount   types.Int32         `tfsdk:"total_count"`
	TotalPage    types.Int32         `tfsdk:"total_page"`
	Subnets      []CtyunSubnetsModel `tfsdk:"subnets"`
}

type CtyunSubnetsModel

type CtyunSubnetsModel struct {
	SubnetID          types.String `tfsdk:"subnet_id"`
	Name              types.String `tfsdk:"name"`
	Description       types.String `tfsdk:"description"`
	VpcID             types.String `tfsdk:"vpc_id"`
	AvailabilityZones types.Set    `tfsdk:"availability_zones"`
	RouteTableID      types.String `tfsdk:"route_table_id"`
	NetworkAclID      types.String `tfsdk:"network_acl_id"`
	CIDR              types.String `tfsdk:"cidr"`
	GatewayIP         types.String `tfsdk:"gateway_ip"`
	Start             types.String `tfsdk:"start"`
	End               types.String `tfsdk:"end"`
	AvailableIPCount  types.Int32  `tfsdk:"available_ipcount"`
	Ipv6Enabled       types.Int32  `tfsdk:"ipv6_enabled"`
	EnableIpv6        types.Bool   `tfsdk:"enable_ipv6"`
	Ipv6CIDR          types.String `tfsdk:"ipv6_cidr"`
	Ipv6Start         types.String `tfsdk:"ipv6_start"`
	Ipv6End           types.String `tfsdk:"ipv6_end"`
	Ipv6GatewayIP     types.String `tfsdk:"ipv6_gateway_ip"`
	DnsList           types.Set    `tfsdk:"dns_list"`
	NtpList           types.Set    `tfsdk:"ntp_list"`
	Type              types.Int32  `tfsdk:"type"`
	UpdatedAt         types.String `tfsdk:"updated_at"`
}

type CtyunVpcConfig

type CtyunVpcConfig struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Cidr        types.String `tfsdk:"cidr"`
	EnableIpv6  types.Bool   `tfsdk:"enable_ipv6"`
	Description types.String `tfsdk:"description"`
	ProjectId   types.String `tfsdk:"project_id"`
	RegionId    types.String `tfsdk:"region_id"`
}

type CtyunVpcRouteTableConfig

type CtyunVpcRouteTableConfig struct {
	ID           types.String `tfsdk:"id"`
	RouteTableID types.String `tfsdk:"route_table_id"`
	RegionID     types.String `tfsdk:"region_id"`
	VpcID        types.String `tfsdk:"vpc_id"`
	Name         types.String `tfsdk:"name"`
	ProjectID    types.String `tfsdk:"project_id"`
}

type CtyunVpcRouteTableRuleConfig

type CtyunVpcRouteTableRuleConfig struct {
	ID           types.String `tfsdk:"id"`
	RuleID       types.String `tfsdk:"rule_id"`
	RegionID     types.String `tfsdk:"region_id"`
	RouteTableID types.String `tfsdk:"route_table_id"`
	NextHopID    types.String `tfsdk:"next_hop_id"`
	NextHopType  types.String `tfsdk:"next_hop_type"`
	Destination  types.String `tfsdk:"destination"`
	IpVersion    types.Int32  `tfsdk:"ip_version"`
	Description  types.String `tfsdk:"description"`
}

type CtyunVpcRouteTableRulesConfig

type CtyunVpcRouteTableRulesConfig struct {
	RegionID     types.String                   `tfsdk:"region_id"`
	RouteTableID types.String                   `tfsdk:"route_table_id"`
	PageNo       types.Int32                    `tfsdk:"page_no"`
	PageSize     types.Int32                    `tfsdk:"page_size"`
	CurrentCount types.Int32                    `tfsdk:"current_count"`
	TotalCount   types.Int32                    `tfsdk:"total_count"`
	TotalPage    types.Int32                    `tfsdk:"total_page"`
	Rules        []CtyunVpcRouteTableRulesModel `tfsdk:"rules"`
}

type CtyunVpcRouteTableRulesModel

type CtyunVpcRouteTableRulesModel struct {
	NextHopID   types.String `tfsdk:"next_hop_id"`
	NextHopType types.String `tfsdk:"next_hop_type"`
	Destination types.String `tfsdk:"destination"`
	IpVersion   types.Int32  `tfsdk:"ip_version"`
	Description types.String `tfsdk:"description"`
	RuleID      types.String `tfsdk:"rule_id"`
}

type CtyunVpcRouteTablesConfig

type CtyunVpcRouteTablesConfig struct {
	RegionID     types.String `tfsdk:"region_id"`
	VpcID        types.String `tfsdk:"vpc_id"`
	PageNo       types.Int32  `tfsdk:"page_no"`
	PageSize     types.Int32  `tfsdk:"page_size"`
	RouteTableID types.String `tfsdk:"route_table_id"`

	CurrentCount types.Int32                `tfsdk:"current_count"`
	TotalCount   types.Int32                `tfsdk:"total_count"`
	TotalPage    types.Int32                `tfsdk:"total_page"`
	RouteTables  []CtyunVpcRouteTablesModel `tfsdk:"route_tables"`
}

type CtyunVpcRouteTablesModel

type CtyunVpcRouteTablesModel struct {
	Name            types.String `tfsdk:"name"`
	VpcID           types.String `tfsdk:"vpc_id"`
	RouteTableID    types.String `tfsdk:"route_table_id"`
	Freezing        types.Bool   `tfsdk:"freezing"`
	RouteRulesCount types.Int32  `tfsdk:"route_rules_count"`
	CreatedAt       types.String `tfsdk:"created_at"`
	UpdatedAt       types.String `tfsdk:"updated_at"`
	Type            types.Int32  `tfsdk:"type"`
	Origin          types.String `tfsdk:"origin"`
}

type CtyunVpcsConfig

type CtyunVpcsConfig struct {
	RegionID  types.String `tfsdk:"region_id"`
	VpcID     types.String `tfsdk:"vpc_id"`
	PageNo    types.Int32  `tfsdk:"page_no"`
	PageSize  types.Int32  `tfsdk:"page_size"`
	ProjectID types.String `tfsdk:"project_id"`

	CurrentCount types.Int32      `tfsdk:"current_count"`
	TotalCount   types.Int32      `tfsdk:"total_count"`
	TotalPage    types.Int32      `tfsdk:"total_page"`
	Vpcs         []CtyunVpcsModel `tfsdk:"vpcs"`
}

type CtyunVpcsModel

type CtyunVpcsModel struct {
	VpcID          types.String `tfsdk:"vpc_id"`
	Name           types.String `tfsdk:"name"`
	Description    types.String `tfsdk:"description"`
	CIDR           types.String `tfsdk:"cidr"`
	Ipv6Enabled    types.Bool   `tfsdk:"ipv6_enabled"`
	EnableIpv6     types.Bool   `tfsdk:"enable_ipv6"`
	Ipv6CIDRS      []string     `tfsdk:"ipv6_cidrs"`
	SubnetIDs      []string     `tfsdk:"subnet_ids"`
	NatGatewayIDs  []string     `tfsdk:"nat_gateway_ids"`
	SecondaryCIDRS []string     `tfsdk:"secondary_cidrs"`
	ProjectID      types.String `tfsdk:"project_id"`
}

Jump to

Keyboard shortcuts

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